Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrila committed Apr 23, 2024
1 parent 3cd06c7 commit 544fddd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions src/components/ProposalBuilder/ProposalTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,17 @@ export default function ProposalTransaction({
/>
</Flex>
<Box my="1rem">
<Divider variant='light'/>
<Divider variant="light" />
</Box>
</Box>
</Flex>
</AccordionPanel>
</Box>
{!isExpanded && <Box mt="0.5rem"><Divider variant="light"/></Box>}
{!isExpanded && (
<Box mt="0.5rem">
<Divider variant="light" />
</Box>
)}
{i === transaction.parameters.length - 1 && (
<Button
onClick={() => {
Expand Down
8 changes: 4 additions & 4 deletions src/components/ui/utils/Divider.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Box } from '@chakra-ui/react';

export default function Divider({ variant = "dark" }: { variant?: "light" | "dark"}) {
const isDark = variant === 'dark'
export default function Divider({ variant = 'dark' }: { variant?: 'light' | 'dark' }) {
const isDark = variant === 'dark';
return (
<Box
height="0"
width="100%"
borderTop="1px solid"
borderTopColor={isDark ? "neutral-1" : 'neutral-2'}
borderTopColor={isDark ? 'neutral-1' : 'neutral-2'}
borderBottom="1px solid"
borderBottomColor={isDark ? "neutral-3" : 'neutral-4'}
borderBottomColor={isDark ? 'neutral-3' : 'neutral-4'}
/>
);
}

0 comments on commit 544fddd

Please sign in to comment.