feat : updae
This commit is contained in:
@@ -15,7 +15,7 @@ export function ConditionTabIcon({ iconUrl }: { iconUrl?: string | null }) {
|
||||
|
||||
export function ConditionSwitcher({
|
||||
children,
|
||||
label = "เลือก Condition",
|
||||
label = "เลือกเงื่อนไข",
|
||||
labels,
|
||||
iconUrls,
|
||||
}: {
|
||||
@@ -36,9 +36,9 @@ export function ConditionSwitcher({
|
||||
{items.map((_, index) => (
|
||||
<Fragment key={index}>
|
||||
{index > 0 ? <Separator orientation="vertical" aria-hidden="true" className="mx-1 h-7" /> : null}
|
||||
<TabsTrigger value={String(index)} className="outline-primary m-2">
|
||||
<TabsTrigger value={String(index)} className="outline-primary m-2 max-sm:min-h-11">
|
||||
<ConditionTabIcon iconUrl={iconUrls?.[index]} />
|
||||
<span className="font-medium text-lg">{labels?.[index] || `Condition ${index + 1}`}</span>
|
||||
<span className="font-medium text-lg">{labels?.[index] || `เงื่อนไข ${index + 1}`}</span>
|
||||
</TabsTrigger>
|
||||
</Fragment>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user