Skip to content

Commit 3268880

Browse files
committed
fix: prettier 적용 파일 커밋
1 parent 13ddab0 commit 3268880

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

app/admin-new/(components)/ThemeDrawer/Container.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ import {
1414
import { DrawerType } from "./types/themeDrawerTypes";
1515
import useEditHint from "./hooks/useEditHint";
1616

17-
const ThemeDrawer = ({
18-
hintType,
19-
handleHintCreate,
20-
}: DrawerType) => {
17+
const ThemeDrawer = ({ hintType, handleHintCreate }: DrawerType) => {
2118
const [selectedHint] = useSelectedHint();
2219
const {
2320
handleSubmit,
@@ -115,4 +112,4 @@ const ThemeDrawer = ({
115112
</form>
116113
);
117114
};
118-
export default ThemeDrawer;
115+
export default ThemeDrawer;

app/components/common/Drawer/Drawer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { Theme, Themes } from "@/queries/getThemeList";
2121
import { getLoginInfo } from "@/utils/localStorage";
2222
import Dialog from "@/components/common/Dialog/Dialog";
2323

24-
2524
import * as S from "./DrawerView.styled";
2625

2726
type Props = {

app/components/common/EmptyHome/EmptyHomeView.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { HOME_TITLE } from "@/consts/components/home";
66
import { useModalStateWrite } from "@/components/atoms/modalState.atom";
77
import { getLoginInfo } from "@/utils/localStorage";
88

9-
109
import * as S from "./EmptyHomeView.styled";
1110

1211
function EmptyHomeView() {

app/hooks/useClickOutside.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,20 @@ function useClickOutside(
2323

2424
// ref가 비어 있거나, ref 내부를 클릭한 경우 무시
2525
const elements = Array.isArray(ref.current) ? ref.current : [ref.current];
26-
const isClickInside = elements.some((element) => element?.contains(target));
26+
const isClickInside = elements.some((element) =>
27+
element?.contains(target)
28+
);
2729
if (isClickInside) return;
2830

2931
// ignoreSiblings 옵션이 true인 경우 형제 요소 클릭 시 닫음
3032
if (ignoreSiblings) {
3133
const parentNode = elements[targetIndex]?.parentNode;
32-
if (parentNode && Array.from(parentNode.children).some((sibling) => sibling.contains(target))) {
34+
if (
35+
parentNode &&
36+
Array.from(parentNode.children).some((sibling) =>
37+
sibling.contains(target)
38+
)
39+
) {
3340
return;
3441
}
3542
}

app/lib/reactQueryProvider.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ apiClient.interceptors.request.use(
1818
const { accessToken } = getLoginInfo();
1919

2020
if (accessToken) {
21-
config.headers.Authorization = `Bearer ${accessToken.replace(/^"(.*)"$/, "$1")}`;
21+
config.headers.Authorization = `Bearer ${accessToken.replace(
22+
/^"(.*)"$/,
23+
"$1"
24+
)}`;
2225
}
2326

2427
return config;

0 commit comments

Comments
 (0)