Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions toolkit/theme/recipes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { recipe as radioGroup } from './radio-group.recipe';
import { recipe as radiomark } from './radiomark.recipe';
import { recipe as ratingGroup } from './rating-group.recipe';
import { recipe as select } from './select.recipe';
import { recipe as separator } from './separator.recipe';
import { recipe as skeleton } from './skeleton.recipe';
import { recipe as spinner } from './spinner.recipe';
import { recipe as stat } from './stat.recipe';
Expand All @@ -41,6 +42,7 @@ export const recipes = {
radiomark,
skeleton,
spinner,
separator,
textarea,
};

Expand Down
9 changes: 9 additions & 0 deletions toolkit/theme/recipes/separator.recipe.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineRecipe } from '@chakra-ui/react';

export const recipe = defineRecipe({
className: 'chakra-separator',
base: {
display: 'block',
borderColor: 'border.divider',
},
});
2 changes: 1 addition & 1 deletion ui/block/details/BlockDetailsZilliqaQuorumCertificate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const BlockDetailsZilliqaQuorumCertificate = ({ data }: Props) => {
</Grid>
{ data.nested_quorum_certificates && data.nested_quorum_certificates.length > 0 && (
<>
<Separator mt={ 2 } w="100%" borderColor="border.divider"/>
<Separator mt={ 2 } w="100%"/>
<AccordionRoot
multiple
w="100%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ const Content = ({
</Flex>
<Separator
orientation="vertical"
borderColor="border.divider"
mx={{ base: 4, md: 8 }}
/>
<Flex
Expand Down
1 change: 0 additions & 1 deletion ui/rewards/dashboard/streakModal/RewardsStreakModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ const RewardsStreakModal = ({ open, onOpenChange, currentStreak, badges = EMPTY_
<Separator
display={{ base: 'none', lg: 'block' }}
orientation="vertical"
borderColor="border.divider"
/>
) }
</>
Expand Down
2 changes: 1 addition & 1 deletion ui/snippets/navigation/horizontal/NavLinkGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const NavLinkGroup = ({ item }: Props) => {
const hasGroups = item.subItems.some((subItem) => Array.isArray(subItem));

const content = hasGroups ? (
<HStack separator={ <Separator/> } alignItems="flex-start">
<HStack separator={ <Separator/> } alignItems="stretch">
{ item.subItems.map((subItem, index) => {
if (!Array.isArray(subItem)) {
return <NavLink key={ subItem.text } item={ subItem }/>;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ui/snippets/topBar/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const TopBar = () => {
</HStack>
<HStack
alignItems="center"
separator={ <Separator mx={{ base: 2, lg: 3 }} height={ 4 } orientation="vertical" borderColor="border.divider"/> }
separator={ <Separator mx={{ base: 2, lg: 3 }} height={ 4 }/> }
>
{ (hasAddChainButton || hasDeFiDropdown) && (
<HStack>
Expand Down
Loading