Skip to content
This repository was archived by the owner on Dec 15, 2024. It is now read-only.

Commit 4a0241a

Browse files
authored
Merge pull request #19 from Team-INSERT/feat/style,ui
feat : style, ui package 모듈로 분리
2 parents b05d27a + d211a7b commit 4a0241a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+471
-404
lines changed

apps/wiki/apis/index.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import axios from "axios";
1+
import axios, { AxiosError } from "axios";
22
import { ERROR } from "@/constants";
33
import { refresh } from "@/services/auth/auth.api";
44

@@ -10,14 +10,15 @@ export const http = axios.create({
1010
http.interceptors.response.use(
1111
(response) => response,
1212
async (error) => {
13-
const request = error.config;
14-
const { code } = error.response.data;
15-
const isAccessTokenExpiredError = code === ERROR.TOKEN_403_2;
13+
if (error instanceof AxiosError) {
14+
const request = error.config;
15+
const { code } = error.response?.data || { code: null };
16+
const isAccessTokenExpiredError = code === ERROR.TOKEN_403_2;
1617

17-
if (isAccessTokenExpiredError && !request.sent) {
18-
request.sent = true;
19-
request.headers.Authorization = await refresh();
20-
return http(request);
18+
if (isAccessTokenExpiredError && request) {
19+
request.headers.Authorization = await refresh();
20+
return http(request);
21+
}
2122
}
2223
return Promise.reject(error);
2324
},

apps/wiki/app/(docs)/[classify]/style.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { flex, font, theme, screen } from "@/styles";
1+
import { flex, font, theme, screen } from "@buma/style";
22
import { style } from "@vanilla-extract/css";
33

44
export const container = style({

apps/wiki/app/(docs)/docs/[title]/style.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { flex, font, theme, screen } from "@/styles";
1+
import { flex, font, theme, screen } from "@buma/style";
22
import { style } from "@vanilla-extract/css";
33

44
export const container = style({

apps/wiki/app/(user)/style.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { flex, font, theme } from "@/styles";
1+
import { flex, font, theme } from "@buma/style";
22
import { style } from "@vanilla-extract/css";
33

44
export const contributeBox = style({

apps/wiki/app/coin/TradeHistory.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { flex, font, theme, screen } from "@/styles";
1+
import { flex, font, theme, screen } from "@buma/style";
22
import { StyleVariantsType } from "@/types";
33
import { style, styleVariants } from "@vanilla-extract/css";
44

apps/wiki/app/coin/rank/style.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { flex, font, theme } from "@/styles";
1+
import { flex, font, theme } from "@buma/style";
22
import { StyleVariantsType } from "@/types";
33
import { style, styleVariants } from "@vanilla-extract/css";
44

apps/wiki/app/coin/style.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { flex, font, theme, screen } from "@/styles";
1+
import { flex, font, theme, screen } from "@buma/style";
22
import { StyleVariantsType } from "@/types";
33
import { style, styleVariants } from "@vanilla-extract/css";
44

apps/wiki/app/history/[title]/detail/[id]/style.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { flex, font, theme } from "@/styles";
1+
import { flex, font, theme } from "@buma/style";
22
import { StyleVariantsType } from "@/types";
33
import { style, styleVariants } from "@vanilla-extract/css";
44

apps/wiki/app/history/[title]/style.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { flex, font, theme } from "@/styles";
1+
import { flex, font, theme } from "@buma/style";
22
import { style } from "@vanilla-extract/css";
33

44
export const historyBox = style({

apps/wiki/app/layout.css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { theme, flex, screen } from "@/styles";
1+
import { theme, flex, screen } from "@buma/style";
22
import { style } from "@vanilla-extract/css";
33

44
export const container = style({

0 commit comments

Comments
 (0)