mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 13:38:51 +00:00
Fix error font and improve pagespeed
This commit is contained in:
@@ -17,6 +17,7 @@ interface IButtonIcon {
|
||||
};
|
||||
onClick?: () => void;
|
||||
disabled?: boolean;
|
||||
label?: string;
|
||||
}
|
||||
|
||||
const ButtonIcon = ({
|
||||
@@ -26,11 +27,13 @@ const ButtonIcon = ({
|
||||
iconStyle,
|
||||
onClick,
|
||||
disabled,
|
||||
label,
|
||||
}: IButtonIcon) => {
|
||||
const isHaveChildren = Boolean(children);
|
||||
|
||||
return (
|
||||
<StyledButtonIcon
|
||||
aria-label={label}
|
||||
isHaveChildren={isHaveChildren}
|
||||
style={{
|
||||
fontSize: style?.fontSize,
|
||||
|
||||
@@ -19,7 +19,7 @@ const HeaderMenu = () => {
|
||||
<StyledHeaderMenu>
|
||||
<li>
|
||||
<ButtonIcon
|
||||
aria-label="Profile"
|
||||
label="Profile"
|
||||
icon={<IoPersonCircleOutline />}
|
||||
iconStyle={{ size: '23px' }}
|
||||
onClick={() => navigate('/account')}
|
||||
@@ -29,7 +29,7 @@ const HeaderMenu = () => {
|
||||
<ButtonIcon
|
||||
onClick={logout}
|
||||
disabled={isPending}
|
||||
aria-label="Logout"
|
||||
label='Logout'
|
||||
icon={<HiOutlineLogout />}
|
||||
iconStyle={{ size: '23px' }}
|
||||
/>
|
||||
|
||||
@@ -18,7 +18,7 @@ const Login = () => {
|
||||
|
||||
return (
|
||||
<LoginLayout>
|
||||
<StyledLogo src={'./assets/images/logo.png'} />
|
||||
<StyledLogo src={'./assets/images/logo.png'} alt='Logo Web' />
|
||||
<TitleStyled>Log In</TitleStyled>
|
||||
|
||||
<LoginForm />
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@font-face {
|
||||
font-family: 'Cabin';
|
||||
src: url('./assets/fonts/Cabin.woff2') format('woff2'),
|
||||
url('./assets/fonts/Cabin.ttf') format('truetype');
|
||||
src: url('/assets/fonts/Cabin.woff2') format('woff2'),
|
||||
url('/assets/fonts/Cabin.ttf') format('truetype');
|
||||
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user