Просмотр исходного кода

feat: refactor fontName for icons

yukendev 2 лет назад
Родитель
Сommit
7f67902b85

+ 1 - 1
apps/app/src/components/FontFamily/GlobalFonts.tsx

@@ -1,6 +1,6 @@
 import { memo } from 'react';
 
-import { useGrowiCustomIcon } from './use-growi-custom-icon';
+import { useGrowiCustomIcon } from './use-growi-custom-icons';
 import { useLatoFontFamily } from './use-lato';
 import { useMaterialSymbolsOutlined } from './use-material-symbols-outlined';
 import { useSourceHanCodeJP } from './use-source-han-code-jp';

+ 1 - 1
apps/app/src/components/FontFamily/use-growi-custom-icon.tsx → apps/app/src/components/FontFamily/use-growi-custom-icons.tsx

@@ -3,7 +3,7 @@ import localFont from 'next/font/local';
 import { DefineStyle } from './types';
 
 const growiCustomIconFont = localFont({
-  src: '../../../../../packages/custom-icons/dist/growi-custom-icon.woff2',
+  src: '../../../../../packages/custom-icons/dist/growi-custom-icons.woff2',
 });
 
 export const useGrowiCustomIcon: DefineStyle = () => (

+ 1 - 1
apps/app/src/styles/_fonts.scss

@@ -22,7 +22,7 @@
   }
 }
 
-.growi-custom-icon {
+.growi-custom-icons {
   font-family: var(--grw-font-family-custom-icon);
   font-size: 16px;
   font-style: normal;

+ 2 - 2
packages/custom-icons/.svgtofontrc

@@ -1,7 +1,7 @@
 {
-  "fontName": "growi-custom-icon",
+  "fontName": "growi-custom-icons",
   "css": false,
   "outSVGReact": false,
   "useNameAsUnicode": true,
-  "className": "growi-custom-icon"
+  "className": "growi-custom-icons"
 }