This commit is contained in:
hamid zarghami
2025-02-17 11:57:03 +03:30
parent df8c000aa6
commit 71a11ff2e7
11 changed files with 348 additions and 114 deletions
+2 -2
View File
@@ -2,8 +2,8 @@ import { FC } from 'react'
type Props = {
isActive: boolean,
value: 'year' | '3month' | 'month',
onChange: (value: 'year' | '3month' | 'month') => void
value: string,
onChange: (value: string) => void
}
const Radio: FC<Props> = (props: Props) => {
+2 -2
View File
@@ -5,10 +5,10 @@ import Radio from './Radio'
type Props = {
items: {
label: string
value: 'year' | '3month' | 'month'
value: string
}[]
selected: string
onChange: (value: 'year' | '3month' | 'month') => void
onChange: (value: string) => void
}
const RadioGroup: FC<Props> = (props: Props) => {