add required label

This commit is contained in:
Patryk
2025-06-10 20:42:13 +02:00
parent 413c9ac5ee
commit 83f105eff1

View File

@@ -248,7 +248,7 @@ export default function CreateNotice() {
</VStack> </VStack>
<VStack space="xs"> <VStack space="xs">
<Text className="text-typography-500">Tytuł</Text> <Text className="text-typography-500">Tytuł*</Text>
<Input className="min-w-[250px]" isInvalid={error.title}> <Input className="min-w-[250px]" isInvalid={error.title}>
<InputField <InputField
type="text" type="text"
@@ -259,7 +259,7 @@ export default function CreateNotice() {
</VStack> </VStack>
<VStack space="xs"> <VStack space="xs">
<Text className="text-typography-500">Opis</Text> <Text className="text-typography-500">Opis*</Text>
<Textarea <Textarea
size="md" size="md"
className="min-w-[250px] " className="min-w-[250px] "
@@ -274,7 +274,7 @@ export default function CreateNotice() {
</VStack> </VStack>
<VStack space="xs"> <VStack space="xs">
<Text className="text-typography-500">Cena</Text> <Text className="text-typography-500">Cena*</Text>
<Input className="min-w-[250px]" isInvalid={error.price}> <Input className="min-w-[250px]" isInvalid={error.price}>
<InputField <InputField
type="text" type="text"
@@ -284,7 +284,7 @@ export default function CreateNotice() {
</Input> </Input>
</VStack> </VStack>
<VStack space="xs"> <VStack space="xs">
<Text className="text-typography-500">Kategoria</Text> <Text className="text-typography-500">Kategoria*</Text>
<Select <Select
onValueChange={(value) => setCategory(value)} onValueChange={(value) => setCategory(value)}
isInvalid={error.category} isInvalid={error.category}