Skip to content

Commit

Permalink
refactor: 사용하지 않는 라이브러리 제거
Browse files Browse the repository at this point in the history
- chakra, framer-motion, emotion, recoil
  • Loading branch information
gxxrxn committed Jun 16, 2024
1 parent 862289f commit 881a8d2
Show file tree
Hide file tree
Showing 45 changed files with 22 additions and 3,357 deletions.
5 changes: 0 additions & 5 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ const config: StorybookConfig = {
docs: {
autodocs: 'tag',
},
refs: {
'@chakra-ui/react': {
disable: true,
},
},
webpackFinal: async config => {
const imageRule = config.module?.rules?.find(rule => {
const test = (rule as { test: RegExp }).test;
Expand Down
1 change: 0 additions & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { initialize, mswLoader } from 'msw-storybook-addon';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import type { Preview } from '@storybook/react';

import Layout from '../src/v1/layout/Layout';
import ToastProvider from '../src/v1/base/Toast/ToastProvider';

import '@/styles/global.css';
Expand Down
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
},
"dependencies": {
"@actions/core": "^1.10.1",
"@chakra-ui/icons": "^2.0.17",
"@chakra-ui/react": "^2.4.9",
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@headlessui/react": "^1.7.15",
"@tanstack/react-query": "^4.24.4",
"@tanstack/react-query-devtools": "^4.24.12",
Expand All @@ -30,14 +26,12 @@
"@types/react-dom": "18.0.10",
"axios": "^1.3.4",
"colorthief": "^2.4.0",
"framer-motion": "^9.0.2",
"next": "13.4.7",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-error-boundary": "^3.1.4",
"react-hook-form": "^7.43.2",
"react-intersection-observer": "^9.4.3",
"recoil": "^0.7.7"
"react-intersection-observer": "^9.4.3"
},
"devDependencies": {
"@babel/core": "^7.22.8",
Expand Down
13 changes: 0 additions & 13 deletions src/components/ChakraThemeProvider.tsx

This file was deleted.

12 changes: 3 additions & 9 deletions src/components/ContextProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
'use client';

import { ReactNode } from 'react';
import { RecoilRoot } from 'recoil';

import PWAServiceWorkerProvider from '@/components/PWAServiceWorkerProvider';
import ChakraThemeProvider from '@/components/ChakraThemeProvider';
import ReactQueryProvider from '@/components/ReactQueryProvider';

import ToastProvider from '@/v1/base/Toast/ToastProvider';

const ContextProvider = ({ children }: { children: ReactNode }) => {
return (
<PWAServiceWorkerProvider>
<RecoilRoot>
<ReactQueryProvider>
<ChakraThemeProvider>
<ToastProvider>{children}</ToastProvider>
</ChakraThemeProvider>
</ReactQueryProvider>
</RecoilRoot>
<ReactQueryProvider>
<ToastProvider>{children}</ToastProvider>
</ReactQueryProvider>
</PWAServiceWorkerProvider>
);
};
Expand Down
10 changes: 9 additions & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,24 @@
html {
@apply w-full bg-background font-[LineSeedKR] text-[62.5%] text-black-700;
-webkit-tap-highlight-color: #ffffff50;

/** from charka */
-webkit-text-size-adjust: 100%;
font-family: system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
touch-action: manipulation;
}

body {
font-size: 1.6rem;
}

.app-layout {
/* TODO: Chakra UI 걷어내면 제거 */
max-width: 43rem;
margin: 0 auto;
@apply bg-white;
}

.sticky {
Expand Down
115 changes: 0 additions & 115 deletions src/styles/theme.tsx

This file was deleted.

148 changes: 0 additions & 148 deletions src/ui/BookDetail/BookInfo.tsx

This file was deleted.

Loading

0 comments on commit 881a8d2

Please sign in to comment.