profile edit #46

Merged
freakoverse merged 11 commits from staging into master 2024-09-24 17:36:56 +00:00
Showing only changes of commit 09f3307635 - Show all commits

View File

@ -85,21 +85,23 @@ interface NavButtonProps {
viewBox?: string viewBox?: string
} }
const NavButton = ({ to, isActive, svgPath, viewBox='0 0 512 512' }: 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={viewBox} viewBox={viewBox}
width='1em' width='1em'
height='1em' height='1em'
fill='currentColor' fill='currentColor'
> >
<path d={svgPath}></path> <path d={svgPath}></path>
</svg> </svg>
</Link> </Link>
) );