Skip to content

Commit

Permalink
fix: make SVGR plugin work as before
Browse files Browse the repository at this point in the history
  • Loading branch information
undrcrxwn committed Sep 23, 2023
1 parent 4a70357 commit 6008cc4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/widgets/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Header = (props: HeaderProps) => {
<header className={cls.header}>
<div className={cls.row}>
<Link variant={LinkVariant.CLEAR} style={{padding: 0}} to={routes.home}>
<Logo />
<Logo/>
</Link>

<Input
Expand Down Expand Up @@ -54,11 +54,11 @@ export const Header = (props: HeaderProps) => {
{forceUser ?? user ? (
<div className={cls.row} style={{alignItems: 'normal'}}>
<Button className={cls.button}>
<NotificationIcon />
<NotificationIcon/>
</Button>
<img src={Avatar} alt="avatar" />
<img src={Avatar} alt="avatar"/>
<Button className={cls.button}>
<ArrowIcon />
<ArrowIcon/>
</Button>
</div>
) : (
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
plugins: [
babel({extensions: ['.ts', '.tsx'], babelHelpers: 'bundled', skipPreflightCheck: true}),
svgr({
exportAsDefault: true,
include: '**/*.svg'
}),
stylelint({
fix: true,
Expand Down

0 comments on commit 6008cc4

Please sign in to comment.