mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
Upgrades biome to 1.6.1, and updates husky pre-commit hook. Most changes here are making type imports explicit.
22 lines
573 B
TypeScript
22 lines
573 B
TypeScript
import { styled } from '@mui/material';
|
|
import type { FC } from 'react';
|
|
import { NavLink } from 'react-router-dom';
|
|
|
|
const StyledNavLink = styled(NavLink)(({ theme }) => ({
|
|
display: 'flex',
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
width: '100%',
|
|
height: '100%',
|
|
textDecoration: 'none',
|
|
color: 'inherit',
|
|
padding: theme.spacing(0, 5),
|
|
'&.active': {
|
|
fontWeight: 'bold',
|
|
},
|
|
}));
|
|
|
|
export const CenteredNavLink: FC<{ to: string }> = ({ to, children }) => {
|
|
return <StyledNavLink to={to}>{children}</StyledNavLink>;
|
|
};
|