fix stylees on notice card

This commit is contained in:
Patryk
2025-06-10 00:46:00 +02:00
parent 871225ea3a
commit 8a2498b467
3 changed files with 16 additions and 17 deletions

View File

@@ -29,6 +29,8 @@ import { getUserById } from "@/api/client";
import * as ScreenOrientation from "expo-screen-orientation";
import { useAuthStore } from "@/store/authStore";
import { sendEmail } from "@/api/email";
// import { Button } from "@gluestack-ui/themed";
import { Button, ButtonText } from "@/components/ui/button";
export default function NoticeDetails() {
const { id } = useLocalSearchParams();
@@ -327,7 +329,7 @@ export default function NoticeDetails() {
<Text className="text-sm font-normal mb-2 text-typography-700">
{formatDate(notice.publishDate)}
</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}
</Text>
@@ -395,10 +397,13 @@ export default function NoticeDetails() {
Wyślij wiadomość
</Text>
</Pressable>
<Link href={`/user/${notice.clientId}`}>
<Text className="text-xl p-3 font-bold text-center text-typography-700 mt-3">
Zobacz więcej ogłoszeń od {user.firstName}
</Text>
<Link href={`/user/${notice.clientId}`} asChild>
<Button variant="outline" className="mt-2">
<ButtonText>
Zobacz więcej ogłoszeń od {user.firstName}
</ButtonText>
</Button>
</Link>
</Box>
</>

View File

@@ -1,4 +1,4 @@
import { useLocalSearchParams } from "expo-router";
import { useLocalSearchParams, Stack } from "expo-router";
import { useState, useEffect } from "react";
import { FlatList, ActivityIndicator, Text } from "react-native";
import { Box } from "@/components/ui/box";
@@ -45,6 +45,11 @@ export default function UserProfile() {
return (
<VStack className="p-4">
<Stack.Screen
options={{
title: "Ogłoszenia użytkownika",
}}
/>
<Box className="flex-row items-center mb-4">
<Image
source={{

View File

@@ -1,11 +0,0 @@
import { Stack } from 'expo-router';
export default function UserLayout() {
return (
<Stack
screenOptions={{
headerTitle: 'Ogłoszenia użytkownika',
}}
/>
);
}