profile edit #46
@ -82,19 +82,20 @@ interface NavButtonProps {
|
|||||||
to: string
|
to: string
|
||||||
isActive: boolean
|
isActive: boolean
|
||||||
svgPath: string
|
svgPath: string
|
||||||
|
viewBox?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const NavButton = ({ to, isActive, svgPath }: NavButtonProps) => (
|
const NavButton = ({ to, isActive, svgPath, viewBox='0 0 512 512' }: NavButtonProps) => (
|
||||||
<Link
|
<Link
|
||||||
to={to}
|
to={to}
|
||||||
className={`btn btnMain socialNavInsideBtn ${
|
className={btn btnMain socialNavInsideBtn ${
|
||||||
isActive ? 'socialNavInsideBtnActive' : ''
|
isActive ? 'socialNavInsideBtnActive' : ''
|
||||||
}`}
|
}}
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
xmlns='http://www.w3.org/2000/svg'
|
xmlns='http://www.w3.org/2000/svg'
|
||||||
viewBox='0 0 512 512'
|
viewBox={viewBox}
|
||||||
width='1em'
|
width='1em'
|
||||||
height='1em'
|
height='1em'
|
||||||
fill='currentColor'
|
fill='currentColor'
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user