Skip to content

Commit a2d6c86

Browse files
committed
[feat/#58] 빌드 실패 이슈 해결
1 parent 9399acf commit a2d6c86

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

src/components/PoseDetector.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useSendPose } from "@/hooks/usePoseMutation"
77
import usePushNotification from "@/hooks/usePushNotification"
88
import { useCreateSnaphot } from "@/hooks/useSnapshotMutation"
99
import { useNotificationStore } from "@/store/NotificationStore"
10-
import { useSnapshotStore } from "@/store/SnapShotStore"
10+
import { useSnapShotStore } from "@/store/SnapshotStore"
1111
import type { pose } from "@/utils/detector"
1212
import { detectHandOnChin, detectSlope, detectTailboneSit, detectTextNeck } from "@/utils/detector"
1313
import { drawPose } from "@/utils/drawer"
@@ -49,7 +49,7 @@ const PoseDetector: React.FC = () => {
4949

5050
const canvasRef = useRef<HTMLCanvasElement>(null)
5151

52-
const { isSnapShotSaved, snapshot, setSnapShot } = useSnapshotStore()
52+
const { isSnapShotSaved, snapshot, setSnapShot } = useSnapShotStore()
5353
const createSnapMutation = useCreateSnaphot()
5454
const sendPoseMutation = useSendPose()
5555

src/components/Posture/PostrueCrew.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import RankingGuideToolTip from "@assets/images/ranking-guide.png"
1212
import SelectBox from "@components/SelectBox"
1313
import { ReactElement, useCallback, useEffect, useRef, useState } from "react"
1414
import { modals } from "../Modal/Modals"
15-
import { useSnapshotStore } from "@/store/SnapShotStore"
15+
import { useSnapShotStore } from "@/store/SnapshotStore"
1616
import { useCreateSnaphot } from "@/hooks/useSnapshotMutation"
1717

1818
interface IPostureCrew {
@@ -47,7 +47,7 @@ const UPDATE_INTERVAL = 1000 // 1초마다 상태 업데이트
4747
export default function PostrueCrew(props: PostureCrewProps): ReactElement {
4848
const { toggleSidebar } = props
4949
const accessToken = useAuthStore((state) => state.accessToken)
50-
const { resetSnapShot } = useSnapshotStore()
50+
const { resetSnapShot } = useSnapShotStore()
5151
const { openModal } = useModals()
5252
const createSnapMutation = useCreateSnaphot()
5353
const [crews, setCrews] = useState<IPostureCrew[]>([])

src/components/SideNav.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import AnalysisIcon from "@assets/icons/side-nav-analysis-icon.svg?react"
44
import CrewIcon from "@assets/icons/side-nav-crew-icon.svg?react"
55
import MonitoringIcon from "@assets/icons/side-nav-monitor-icon.svg?react"
66
import { Link, useLocation, useNavigate } from "react-router-dom"
7-
import { useSnapshotStore } from "@/store/SnapShotStore"
7+
import { useSnapShotStore } from "@/store/SnapshotStore"
88
import { useMemo } from "react"
99
import { clearAccessToken } from "@/api/axiosInstance"
1010
import { useNotificationStore } from "@/store/NotificationStore"
@@ -35,7 +35,7 @@ export default function SideNav(): React.ReactElement {
3535

3636
const logoutHandler = (): void => {
3737
const clearUser = useAuthStore.persist.clearStorage
38-
const clearSnapshot = useSnapshotStore.persist.clearStorage
38+
const clearSnapshot = useSnapShotStore.persist.clearStorage
3939
const clearNotification = useNotificationStore.persist.clearStorage
4040

4141
clearUser()

src/pages/AuthPage.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Login from "@/components/Login"
44
import { useOauth, useSignUp, useSignIn, useGetIsSignUp } from "@/hooks/useAuthMutation"
55
import RoutePath from "@/constants/routes.json"
66
import { useAuthStore } from "@/store/AuthStore"
7-
import { useSnapshotStore } from "@/store/SnapShotStore"
7+
import { useSnapShotStore } from "@/store/SnapshotStore"
88
import { useGetRecentSnapshot } from "@/hooks/useSnapshotMutation"
99
import { useGetNoti } from "@/hooks/useNotiMutation"
1010
import { useNotificationStore } from "@/store/NotificationStore"
@@ -22,7 +22,7 @@ const AuthPage: React.FC = () => {
2222
const [isError, setIsError] = useState(false)
2323

2424
const setUser = useAuthStore((state) => state.setUser)
25-
const setSnap = useSnapshotStore((state) => state.setSnapShot)
25+
const setSnap = useSnapShotStore((state) => state.setSnapShot)
2626
const setNoti = useNotificationStore((state) => state.setNotification)
2727

2828
useEffect(() => {

src/pages/MonitoringPage.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PostrueCrew from "@/components/Posture/PostrueCrew"
33
import GroupSideIcon from "@assets/icons/group-side-nav-button.svg?react"
44
import React, { useEffect, useState } from "react"
55
import { useGetRecentSnapshot } from "@/hooks/useSnapshotMutation"
6-
import { useSnapshotStore } from "@/store/SnapShotStore"
6+
import { useSnapShotStore } from "@/store/SnapshotStore"
77
import usePushNotification from "@/hooks/usePushNotification"
88
import { useGuidePopup } from "@/hooks/useGuidePopup"
99

@@ -12,7 +12,7 @@ const MonitoringPage: React.FC = () => {
1212
const getRecentSnapMutation = useGetRecentSnapshot()
1313

1414
const { isPopupOpen } = useGuidePopup()
15-
const { snapshot, setSnapShot } = useSnapshotStore()
15+
const { snapshot, setSnapShot } = useSnapShotStore()
1616

1717
const [isSidebarOpen, setIsSidebarOpen] = useState<boolean>(true)
1818

src/store/SnapshotStore.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ import { keypoint } from "@/utils"
22
import { create } from "zustand"
33
import { persist } from "zustand/middleware"
44

5-
interface SnapshotState {
5+
interface SnapShotState {
66
isSnapShotSaved: boolean
77
snapshot: keypoint[] | null
88
setSnapShot: (snapshot: keypoint[] | null) => void
99
resetSnapShot: () => void
1010
}
1111

12-
export const useSnapshotStore = create(
13-
persist<SnapshotState>(
12+
export const useSnapShotStore = create(
13+
persist<SnapShotState>(
1414
(set) => ({
1515
isSnapShotSaved: false,
1616
snapshot: null,

0 commit comments

Comments
 (0)