fix: storybook font rendering and shared fonts module #1
@@ -5,6 +5,9 @@ import { usePathname } from 'next/navigation';
|
||||
import { CONTACT_LINKS, cn } from '$shared/lib';
|
||||
import type { NavItem } from '../model/types';
|
||||
|
||||
/**
|
||||
* Props for SidebarNav.
|
||||
*/
|
||||
interface Props {
|
||||
/**
|
||||
* Navigation items to render
|
||||
|
||||
+10
-10
@@ -1,6 +1,6 @@
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import path from 'path'
|
||||
import react from '@vitejs/plugin-react';
|
||||
import path from 'path';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
@@ -12,13 +12,13 @@ export default defineConfig({
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'$shared': path.resolve(__dirname, './src/shared'),
|
||||
'$entities': path.resolve(__dirname, './src/entities'),
|
||||
'$widgets': path.resolve(__dirname, './src/widgets'),
|
||||
'$features': path.resolve(__dirname, './src/features'),
|
||||
'$app': path.resolve(__dirname, './src/app'),
|
||||
'$routes': path.resolve(__dirname, './src/routes'),
|
||||
$shared: path.resolve(__dirname, './src/shared'),
|
||||
$entities: path.resolve(__dirname, './src/entities'),
|
||||
$widgets: path.resolve(__dirname, './src/widgets'),
|
||||
$features: path.resolve(__dirname, './src/features'),
|
||||
$app: path.resolve(__dirname, './src/app'),
|
||||
$routes: path.resolve(__dirname, './src/routes'),
|
||||
'@': path.resolve(__dirname, '.'),
|
||||
},
|
||||
},
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user