Small Tweaks (#17652)

* Ensure that hailo uses correct labelmap

* Make whole button clickable

* Add weblate to readme

* Update docs for HEIC

* Fix explore chip icon logic

* Sort regardless of case

* Don't allow selection

* Fix image uploading
This commit is contained in:
Nicolas Mowen
2025-04-11 08:21:01 -06:00
committed by GitHub
parent 664889d487
commit e9787c5a88
8 changed files with 62 additions and 28 deletions
+5 -1
View File
@@ -32,7 +32,11 @@ export default function ImageEntry({
const [preview, setPreview] = useState<string | null>(null);
const formSchema = z.object({
file: z.instanceof(File, { message: "Please select an image file." }),
file: z
.instanceof(File, { message: t("imageEntry.validation.selectImage") })
.refine((file) =>
accept["image/*"].includes(`.${file.type.split("/")[1]}`),
),
});
const form = useForm<z.infer<typeof formSchema>>({