change(size-chart): centimeter only (drop cm/inch toggle)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
7867db425e
commit
2cf1224107
@ -20,11 +20,6 @@ interface SizeChartSectionProps {
|
||||
showError?: boolean;
|
||||
}
|
||||
|
||||
const UNITS: { value: string; label: string }[] = [
|
||||
{ value: "cm", label: "سانتیمتر" },
|
||||
{ value: "inch", label: "اینچ" },
|
||||
];
|
||||
|
||||
export function SizeChartSection({
|
||||
value,
|
||||
onChange,
|
||||
@ -171,26 +166,8 @@ export function SizeChartSection({
|
||||
</p>
|
||||
)}
|
||||
|
||||
{/* Unit toggle */}
|
||||
<div className="flex items-center justify-between">
|
||||
<span className="text-R12 text-GRAY">واحد اندازهگیری</span>
|
||||
<div className="flex overflow-hidden rounded-lg border border-GRAY3">
|
||||
{UNITS.map((u) => (
|
||||
<button
|
||||
key={u.value}
|
||||
type="button"
|
||||
onClick={() => emit({ unit: u.value })}
|
||||
className={cn(
|
||||
"px-3 py-1 text-R12 transition-colors cursor-pointer",
|
||||
unit === u.value
|
||||
? "bg-BLACK text-WHITE"
|
||||
: "bg-WHITE text-BLACK2 hover:bg-WHITE3"
|
||||
)}
|
||||
>
|
||||
{u.label}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
<div className="flex items-center justify-end">
|
||||
<span className="text-R12 text-GRAY">اندازهها به سانتیمتر</span>
|
||||
</div>
|
||||
|
||||
{/* Grid */}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user