feat: add InputFile component for file uploads and integrate into FormContentsPage

This commit is contained in:
Ardeman
2025-03-09 15:14:57 +08:00
parent 3d13707359
commit 422c9cbfe2
3 changed files with 83 additions and 2 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ import { TextEditor } from '~/components/text-editor'
import { Button } from '~/components/ui/button'
import { Combobox } from '~/components/ui/combobox'
import { Input } from '~/components/ui/input'
import { InputFile } from '~/components/ui/input-file'
import { Switch } from '~/components/ui/switch'
import { TitleDashboard } from '~/components/ui/title-dashboard'
import type { loader } from '~/routes/_admin.lg-admin._dashboard'
@@ -133,7 +134,7 @@ export const FormContentsPage = (properties: TProperties) => {
containerClassName="flex-1"
disabled={!!newsData}
/>
<Input
<InputFile
id="featured_image"
label="Gambar Unggulan"
placeholder="Masukkan Url Gambar Unggulan"