Skip to content

Commit

Permalink
Feat: svg sprite 적용하기 (#360)
Browse files Browse the repository at this point in the history
* refactor: 리액트 퀼 관련 아이콘들에 SVGsprite 적용

* Refactor: 스택 아이콘 svg sprite 적용

* Refactor: SVG태그 내부의 속성 이름을 카멜 케이스로 바꿈
  • Loading branch information
hankim0904 authored May 8, 2024
1 parent 5685eef commit ce4537c
Show file tree
Hide file tree
Showing 9 changed files with 473 additions and 63 deletions.
11 changes: 10 additions & 1 deletion co-kkiri/.prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,14 @@
"useTabs": false,
"tabWidth": 2,
"bracketSameLine": true,
"endOfLine": "auto"
"endOfLine": "auto",
"overrides": [
{
"files": "./src/constants/stacks.ts",
"options": {
"quoteProps": "preserve",
"printWidth": 300
}
}
]
}
4 changes: 3 additions & 1 deletion co-kkiri/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import GlobalStyles from "./styles/globals";
import PageRouter from "./PageRouter";
import Toasts from "./components/commons/Widgets/Toast";
import { GlobalStackSvgSprite } from "./components/commons/GlobalStackSvgSprite";

const queryClient = new QueryClient({
defaultOptions: {
Expand All @@ -19,7 +20,8 @@ function App() {
<GlobalStyles />
<ReactQueryDevtools initialIsOpen={false} />
<PageRouter />
<Toasts/>
<GlobalStackSvgSprite />
<Toasts />
</QueryClientProvider>
</>
);
Expand Down
1 change: 1 addition & 0 deletions co-kkiri/src/assets/svgSprite/reactQuillIcons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ce4537c

Please sign in to comment.