chore: variation to variant

pull/4053/head
Arik Chakma 1 year ago
parent 7457f8b008
commit 33c34f878e
  1. 2
      src/components/RoadCard/TallBadgeTab.tsx
  2. 54
      src/components/RoadCard/WideBadgeTab.tsx

@ -26,7 +26,7 @@ export function TallBadgeTab() {
<div className="sm:col-span-3 mt-6 sm:mt-0"> <div className="sm:col-span-3 mt-6 sm:mt-0">
<div> <div>
<span className="text-xs uppercase leading-none text-gray-400"> <span className="text-xs uppercase leading-none text-gray-400">
Variation Variant
</span> </span>
<div className="mt-2 flex items-center gap-2"> <div className="mt-2 flex items-center gap-2">

@ -21,36 +21,36 @@ export default function WideBadgeTab() {
return ( return (
<div className="flex flex-col gap-6"> <div className="flex flex-col gap-6">
<WideBadge badgeUrl={badgeUrl} />
<div> <div>
<div> <span className="text-xs uppercase leading-none text-gray-400">
<span className="text-xs uppercase leading-none text-gray-400"> Variant
Variation </span>
</span>
<div className="mt-2 flex items-center gap-2">
<div className="mt-2 flex items-center gap-2"> <button
<button className={`flex h-7 items-center justify-center rounded-lg border border-gray-200 px-3 text-sm leading-none hover:opacity-80 ${
className={`flex h-7 items-center justify-center rounded-lg border border-gray-200 px-3 text-sm leading-none hover:opacity-80 ${ selectedVariant === 'dark' && 'border-gray-300 bg-gray-100'
selectedVariant === 'dark' && 'border-gray-300 bg-gray-100' }`}
}`} onClick={() => setSelectedVariant('dark')}
onClick={() => setSelectedVariant('dark')} >
> Dark
Dark </button>
</button>
<button
<button className={`flex h-7 items-center justify-center rounded-lg border border-gray-200 px-3 text-sm leading-none hover:opacity-80 ${
className={`flex h-7 items-center justify-center rounded-lg border border-gray-200 px-3 text-sm leading-none hover:opacity-80 ${ selectedVariant === 'light' && 'border-gray-300 bg-gray-100'
selectedVariant === 'light' && 'border-gray-300 bg-gray-100' }`}
}`} onClick={() => setSelectedVariant('light')}
onClick={() => setSelectedVariant('light')} >
> Light
Light </button>
</button>
</div>
</div> </div>
</div>
<div className={`mt-4 flex flex-col gap-3 sm:flex-row`}> <WideBadge badgeUrl={badgeUrl} />
<div>
<div className={`flex flex-col gap-3 sm:flex-row`}>
<Editor title={'HTML'} text={textareaContent} /> <Editor title={'HTML'} text={textareaContent} />
<Editor title={'Markdown'} text={markdownSnippet} /> <Editor title={'Markdown'} text={markdownSnippet} />
</div> </div>

Loading…
Cancel
Save