chore: added className prop at Segment

This commit is contained in:
원더 2021-02-12 11:36:22 +09:00
parent 0a3c0e7838
commit 5bd2c7622e

View File

@ -1,12 +1,13 @@
const Segment = ({ children }:SegmentProps): JSX.Element => {
const Segment = ({ children, className='' }:SegmentProps): JSX.Element => {
return (
<div className='py-3 px-7 text-black dark:text-white dark:bg-discord-black bg-little-white rounded-sm'>
<div className={`py-3 px-7 text-black dark:text-white dark:bg-discord-black bg-little-white rounded-sm ${className}`}>
{children}
</div>
)
}
interface SegmentProps {
className?: string
children: JSX.Element | JSX.Element[]
}