feat: update Switch component to support customizable labels and adjust related UI elements
This commit is contained in:
@@ -180,9 +180,10 @@ export const CreateContentsPage = () => {
|
||||
<Switch
|
||||
id="is_premium"
|
||||
name="is_premium"
|
||||
label="Premium"
|
||||
label="Subscription"
|
||||
labelClassName="text-sm font-medium text-[#363636]"
|
||||
className="h-[42px]"
|
||||
options={{ true: 'Premium', false: 'Normal' }}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ export const ContentsPage = () => {
|
||||
},
|
||||
{ title: 'Tag', data: 'tags' },
|
||||
{
|
||||
title: 'Premium',
|
||||
title: 'Subscription',
|
||||
data: 'is_premium',
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user