-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
76108b1
commit 40f7ce0
Showing
4 changed files
with
11 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
import styled from 'styled-components' | ||
import { AccordionItem } from '@chakra-ui/react' | ||
|
||
const StyledItem = styled(AccordionItem)` | ||
border-bottom: 1px solid var(--grey-40); | ||
` | ||
export type AccordionItemProps = { | ||
id: number | ||
children: React.ReactNode | ||
} | ||
|
||
export const Item = ({ id, children, ...rest }: AccordionItemProps) => { | ||
return ( | ||
<StyledItem {...rest} index={id}> | ||
<AccordionItem style={{borderBottom: '1px solid var(--grey-40)'}}{...rest} key={id}> | ||
{children} | ||
</StyledItem> | ||
</AccordionItem> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters