mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: enhance course page and indicators
This commit is contained in:
parent
ca12e799df
commit
b40ddde2c2
6 changed files with 895 additions and 433 deletions
|
|
@ -4,11 +4,19 @@ import { styled } from '@stitches/react'
|
|||
import { blackA } from '@radix-ui/colors'
|
||||
import { Info } from 'lucide-react'
|
||||
|
||||
const FormLayout: React.FC<{ children: React.ReactNode; onSubmit: (e: any) => void }> = (props) => (
|
||||
<FormRoot className="h-fit" onSubmit={props.onSubmit}>
|
||||
{props.children}
|
||||
</FormRoot>
|
||||
)
|
||||
interface FormLayoutProps {
|
||||
children: React.ReactNode
|
||||
onSubmit: (e: any) => void
|
||||
className?: string
|
||||
}
|
||||
|
||||
const FormLayout = ({ children, onSubmit, className }: FormLayoutProps) => {
|
||||
return (
|
||||
<Form.Root onSubmit={onSubmit} className={className}>
|
||||
{children}
|
||||
</Form.Root>
|
||||
)
|
||||
}
|
||||
|
||||
export const FormLabelAndMessage = (props: {
|
||||
label: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue