feat: add InputFile component for file uploads and integrate into FormContentsPage
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user