mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
Fix file input click event in ThumbnailUpdate component
This commit is contained in:
parent
513d65704f
commit
f8ba29b015
5 changed files with 107 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ import * as Switch from '@radix-ui/react-switch';
|
|||
import * as Form from '@radix-ui/react-form';
|
||||
import React from 'react'
|
||||
import { useCourse, useCourseDispatch } from '../../../Contexts/CourseContext';
|
||||
import ThumbnailUpdate from './ThumbnailUpdate';
|
||||
|
||||
|
||||
type EditCourseStructureProps = {
|
||||
|
|
@ -131,6 +132,13 @@ function EditCourseGeneral(props: EditCourseStructureProps) {
|
|||
</Form.Control>
|
||||
</FormField>
|
||||
|
||||
<FormField name="thumbnail">
|
||||
<FormLabelAndMessage label='Thumbnail' />
|
||||
<Form.Control asChild>
|
||||
<ThumbnailUpdate />
|
||||
</Form.Control>
|
||||
</FormField>
|
||||
|
||||
<FormField className="flex items-center h-10" name="public">
|
||||
<div className='flex my-auto items-center'>
|
||||
<label className="text-black text-[15px] leading-none pr-[15px]" htmlFor="public-course">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue