Skip to content

Commit

Permalink
Refactor styling in deposit and stake components
Browse files Browse the repository at this point in the history
  • Loading branch information
snoopy1412 committed Sep 12, 2024
1 parent e52be45 commit d9e50bd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/view/deposit/_components/records.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ const DepositRecordsModal = ({
color="primary"
layout="fixed"
classNames={{
wrapper: 'overflow-auto max-h-[50vh] rounded-medium p-0 bg-secondary',
wrapper:
'overflow-auto max-h-[50vh] rounded-medium p-0 shadow-none bg-background dark:bg-secondary',
td: 'text-foreground'
}}
bottomContentPlacement="outside"
Expand Down
8 changes: 7 additions & 1 deletion src/view/stake/_components/manage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,13 @@ const StakeManagementModal = ({
Manage Stake
</ModalHeader>
<Divider />
<ModalBody className="relative flex w-full flex-col items-center justify-center gap-5 px-0 py-5">
<ModalBody
className="relative flex w-full flex-col items-center justify-center gap-5 px-0 py-5"
style={{
pointerEvents:
isLoading || isCollatorLoading || isCollatorRefetching ? 'none' : 'auto'
}}
>
{(isLoading || isCollatorLoading || isCollatorRefetching) && (
<div className="absolute inset-0 flex items-center justify-center bg-background/50">
<Spinner />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ const CollatorSelectionTable = ({
selectedKeys={selectedCollator?.address}
bottomContentPlacement="outside"
classNames={{
wrapper: 'overflow-auto max-h-[50vh] rounded-medium p-0 bg-secondary',
wrapper:
'overflow-auto max-h-[50vh] rounded-medium p-0 shadow-none bg-background dark:bg-secondary',
td: 'text-foreground'
}}
layout="fixed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ const CollatorWaitingSelectionTable = ({
selectedKeys={selectedCollator?.address}
bottomContentPlacement="outside"
classNames={{
wrapper: 'overflow-auto max-h-[50vh] rounded-medium p-0 bg-secondary',
wrapper:
'overflow-auto max-h-[50vh] rounded-medium p-0 shadow-none bg-background dark:bg-secondary',
td: 'text-foreground'
}}
bottomContent={
Expand Down

0 comments on commit d9e50bd

Please sign in to comment.