feat: enhance layout and button functionality in subscriptions page
This commit is contained in:
parent
6d8e352ffc
commit
dc794a29d3
@ -52,16 +52,11 @@ export const SubscriptionsPage = () => {
|
||||
return (
|
||||
<div className="relative">
|
||||
<TitleDashboard title="Subscription" />
|
||||
<Button
|
||||
className="float-right mt-7 h-10 w-[160px] rounded-md"
|
||||
onClick={switchView}
|
||||
>
|
||||
{SubscribtionOpen ? 'Subscriptions' : 'Save'}
|
||||
</Button>
|
||||
|
||||
{SubscribtionOpen && (
|
||||
<>
|
||||
<div className="mb-8 flex items-center gap-5 rounded-lg bg-gray-50 text-[#363636]">
|
||||
<div className="mb-8 flex items-end justify-between">
|
||||
<div className="flex items-center gap-5 rounded-lg bg-gray-50 text-[#363636]">
|
||||
<div className="w-[400px]">
|
||||
<Field>
|
||||
<Label className="mb-2 block text-sm font-medium">
|
||||
@ -82,7 +77,9 @@ export const SubscriptionsPage = () => {
|
||||
|
||||
<div className="w-[235px]">
|
||||
<Field>
|
||||
<Label className="mb-2 block text-sm font-medium">Status</Label>
|
||||
<Label className="mb-2 block text-sm font-medium">
|
||||
Status
|
||||
</Label>
|
||||
<Select className="w-full rounded-lg bg-white p-2 shadow focus:ring-1 focus:ring-[#2E2F7C] focus:outline-none">
|
||||
<option>Pilih Status</option>
|
||||
<option>Aktif</option>
|
||||
@ -92,6 +89,15 @@ export const SubscriptionsPage = () => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Button
|
||||
className="rounded-md"
|
||||
size="lg"
|
||||
onClick={switchView}
|
||||
>
|
||||
Subscription Settings
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<UiTable
|
||||
data={SUBSCRIPTIONS}
|
||||
columns={colTableSubscription}
|
||||
@ -108,7 +114,8 @@ export const SubscriptionsPage = () => {
|
||||
|
||||
{!SubscribtionOpen && (
|
||||
<>
|
||||
<div className="mb-8 flex items-end gap-5 rounded-lg bg-gray-50 text-[#363636]">
|
||||
<div className="mb-8 flex items-end justify-between">
|
||||
<div className="flex items-end gap-5 rounded-lg bg-gray-50 text-[#363636]">
|
||||
<div className="w-[300px]">
|
||||
<Field>
|
||||
<Label className="mb-2 block text-sm font-medium">
|
||||
@ -151,6 +158,14 @@ export const SubscriptionsPage = () => {
|
||||
</Field>
|
||||
</div>
|
||||
</div>
|
||||
<Button
|
||||
className="rounded-md"
|
||||
size="lg"
|
||||
onClick={switchView}
|
||||
>
|
||||
Save
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<UiTable
|
||||
data={SUBSETTINGS}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user