fix stylees on notice card
This commit is contained in:
@@ -29,6 +29,8 @@ import { getUserById } from "@/api/client";
|
|||||||
import * as ScreenOrientation from "expo-screen-orientation";
|
import * as ScreenOrientation from "expo-screen-orientation";
|
||||||
import { useAuthStore } from "@/store/authStore";
|
import { useAuthStore } from "@/store/authStore";
|
||||||
import { sendEmail } from "@/api/email";
|
import { sendEmail } from "@/api/email";
|
||||||
|
// import { Button } from "@gluestack-ui/themed";
|
||||||
|
import { Button, ButtonText } from "@/components/ui/button";
|
||||||
|
|
||||||
export default function NoticeDetails() {
|
export default function NoticeDetails() {
|
||||||
const { id } = useLocalSearchParams();
|
const { id } = useLocalSearchParams();
|
||||||
@@ -327,7 +329,7 @@ export default function NoticeDetails() {
|
|||||||
<Text className="text-sm font-normal mb-2 text-typography-700">
|
<Text className="text-sm font-normal mb-2 text-typography-700">
|
||||||
{formatDate(notice.publishDate)}
|
{formatDate(notice.publishDate)}
|
||||||
</Text>
|
</Text>
|
||||||
<Text className="text-2xl text-gray-950 font-bold mb-2 text-center bg-gray-50 rounded-md p-2">
|
<Text className="text-2xl text-gray-950 font-bold mb-2 text-left bg-gray-50 rounded-md p-2">
|
||||||
{notice.title}
|
{notice.title}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
@@ -395,10 +397,13 @@ export default function NoticeDetails() {
|
|||||||
Wyślij wiadomość
|
Wyślij wiadomość
|
||||||
</Text>
|
</Text>
|
||||||
</Pressable>
|
</Pressable>
|
||||||
<Link href={`/user/${notice.clientId}`}>
|
|
||||||
<Text className="text-xl p-3 font-bold text-center text-typography-700 mt-3">
|
<Link href={`/user/${notice.clientId}`} asChild>
|
||||||
Zobacz więcej ogłoszeń od {user.firstName}
|
<Button variant="outline" className="mt-2">
|
||||||
</Text>
|
<ButtonText>
|
||||||
|
Zobacz więcej ogłoszeń od {user.firstName}
|
||||||
|
</ButtonText>
|
||||||
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
</Box>
|
</Box>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { useLocalSearchParams } from "expo-router";
|
import { useLocalSearchParams, Stack } from "expo-router";
|
||||||
import { useState, useEffect } from "react";
|
import { useState, useEffect } from "react";
|
||||||
import { FlatList, ActivityIndicator, Text } from "react-native";
|
import { FlatList, ActivityIndicator, Text } from "react-native";
|
||||||
import { Box } from "@/components/ui/box";
|
import { Box } from "@/components/ui/box";
|
||||||
@@ -45,6 +45,11 @@ export default function UserProfile() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<VStack className="p-4">
|
<VStack className="p-4">
|
||||||
|
<Stack.Screen
|
||||||
|
options={{
|
||||||
|
title: "Ogłoszenia użytkownika",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
<Box className="flex-row items-center mb-4">
|
<Box className="flex-row items-center mb-4">
|
||||||
<Image
|
<Image
|
||||||
source={{
|
source={{
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
import { Stack } from 'expo-router';
|
|
||||||
|
|
||||||
export default function UserLayout() {
|
|
||||||
return (
|
|
||||||
<Stack
|
|
||||||
screenOptions={{
|
|
||||||
headerTitle: 'Ogłoszenia użytkownika',
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user