diff --git a/apps/member/src/components/common/Linker/Linker.tsx b/apps/member/src/components/common/Linker/Linker.tsx index 57428349..33010717 100644 --- a/apps/member/src/components/common/Linker/Linker.tsx +++ b/apps/member/src/components/common/Linker/Linker.tsx @@ -1,27 +1,23 @@ import classNames from 'classnames'; +import { PropsWithChildren } from 'react'; +import { Link } from 'react-router-dom'; -import { useNavigate } from 'react-router-dom'; - -interface LinkerProps { +interface LinkerProps extends PropsWithChildren { to: string | Partial; - onClick?: () => void; className?: string; - children: React.ReactNode; } const Linker = ({ to, className, children }: LinkerProps) => { - const navigate = useNavigate(); - return ( - navigate(to)} + {children} - + ); };