feat: update Switch component to support customizable labels and adjust related UI elements

This commit is contained in:
Ardeman
2025-03-07 10:30:46 +08:00
parent d765d92df7
commit 75e548dc83
3 changed files with 20 additions and 5 deletions
+2 -1
View File
@@ -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>
+1 -1
View File
@@ -45,7 +45,7 @@ export const ContentsPage = () => {
},
{ title: 'Tag', data: 'tags' },
{
title: 'Premium',
title: 'Subscription',
data: 'is_premium',
},
{