Skip to content

Commit 123b587

Browse files
committed
hotfix: 기타 타입 관련 문제 해결
1 parent 71a9436 commit 123b587

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/app/(auth-required)/main/components/Summary/SidebarContent.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { useModal } from '@/hooks';
1+
// import { useModal } from '@/hooks';
22
import { parseNumber } from '@/utils/numberUtil';
3-
import { Modal, table } from './Modal';
3+
// import { Modal, table } from './Modal';
4+
import { table } from './Modal';
45

56
interface IProp {
67
title: string;
@@ -14,7 +15,7 @@ const afterContent =
1415
'after:text-PRIMARY-SUB after:content-[attr(data-increasement)_"↑"] after:ml-2 after:text-ST3 max-TBL:after:text-ST4 transition-all';
1516

1617
export const SidebarContent = ({ title, content, increasement, prefix = '개', id }: IProp) => {
17-
const { open } = useModal();
18+
// const { open } = useModal();
1819

1920
return (
2021
<div

src/components/Providers/ModalProvider.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
'use client';
22

3-
import { useRef } from 'react';
43
import { useModal } from '@/hooks/useModal';
54

6-
export const ModalProvider = () => {
5+
export const ModalProvider = (): React.ReactNode => {
76
const { Modal } = useModal();
87

98
if (typeof window !== 'undefined') return Modal ? Modal : <></>;

src/constants/env.constant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ export const env = (() => {
2020
});
2121
}
2222

23-
return env;
23+
return env as Record<keyof typeof env, string>;
2424
})();

0 commit comments

Comments
 (0)