mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
Changes
This commit is contained in:
parent
45554c68d6
commit
bb9cfa0cd1
@ -4,13 +4,10 @@ import { UserNav } from '@components/common'
|
||||
import cn from 'classnames'
|
||||
import s from './SidebarLayout.module.css'
|
||||
|
||||
interface BaseProps {
|
||||
className?: string
|
||||
}
|
||||
|
||||
type ComponentProps =
|
||||
| (BaseProps & { handleClose: () => any })
|
||||
| (BaseProps & { handleBack: () => any })
|
||||
type ComponentProps = { className?: string } & (
|
||||
| { handleClose: () => any; handleBack?: never }
|
||||
| { handleBack: () => any; handleClose?: never }
|
||||
)
|
||||
|
||||
const SidebarLayout: FC<ComponentProps> = ({
|
||||
children,
|
||||
|
Loading…
x
Reference in New Issue
Block a user