Skip to content

Commit

Permalink
fix : build 에러 수정 (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloWook authored Jan 4, 2025
1 parent f876bf7 commit 68e23fc
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 25 deletions.
3 changes: 0 additions & 3 deletions src/components/Common/TopBar/TopBar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ type Story = StoryObj<typeof TopBar>;

export const Default: Story = {
args: {
handleBackClick: () => {
alert('back');
},
handleSuccesClick: () => {
alert('go');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ const CreateMapLetterCotainer = () => {
return (
<>
<TopBar
handleBackClick={() => {
navigate(-1);
}}
handleSuccesClick={async () => {
if (
!title.trim() ||
Expand Down Expand Up @@ -137,7 +134,6 @@ const CreateMapLetterCotainer = () => {
<TextArea
value={letterContent}
setValue={setLetterContent}
font={font}
/>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useNearbyLetters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getNearbyLetters } from '@/service/MapLetter/getNearbyLetters';
import { NearbyLettersResponseType } from '@/types/letter';

export const useNearbyLetters = (
currentLocation: { longitude: string; latitude: string } | null
currentLocation: { longitude: number; latitude: number } | null
) => {
const query = useQuery({
queryKey: [
Expand Down
8 changes: 1 addition & 7 deletions src/pages/Letter/SelectItem/SelectItemPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ import { TopBar } from '@/components/Common/TopBar/TopBar';
import { AnimationBottle } from '@/components/SelectItemPage/AnimationBottle/AnimationBottle';
import { SelectItem } from '@/components/SelectItemPage/SelectItem/SelectItem';
import React, { useCallback, useState } from 'react';
import { useNavigate } from 'react-router-dom';

const SelectItemPage = () => {
const navigate = useNavigate();
const [isActive, setIsActive] = useState(false);

const handleIsActive = useCallback((value: boolean) => {
Expand All @@ -14,11 +12,7 @@ const SelectItemPage = () => {

return (
<>
<TopBar
handleBackClick={() => {
navigate(-1);
}}
/>
<TopBar />

<h2
className={`text-2xl text-center mt-[25%] transition-opacity duration-1000 ${
Expand Down
10 changes: 0 additions & 10 deletions src/pages/Map/Select/MapSelectItemPage.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { Margin } from '@/components/Common/Margin/Margin';
import { SliderMenuContainer } from '@/components/Common/SliderMenuContainer/SliderMenuContainer';
import { TopBar } from '@/components/Common/TopBar/TopBar';
import { AnimationBottle } from '@/components/SelectItemPage/AnimationBottle/AnimationBottle';
import { CreateButton } from '@/components/SelectItemPage/CreateButton/CreateButton';
import React, { useEffect, useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { LabelProps } from '@/types/label';
import { LabelList } from '@/components/SelectItemPage/LabelList/LabelList';
import { useCreateMapLetter } from '@/hooks/useCreateMapLetter';
Expand All @@ -21,8 +19,6 @@ const testLable: LabelProps[] = [
];

export const MapSelectItemPage = () => {
const navigate = useNavigate();

// 로컬스토리지에서 데이터 가져오기
const { storedValue: title } = useLocalStorage('maptitle', '');
const { storedValue: content } = useLocalStorage('mapcontent', '');
Expand Down Expand Up @@ -88,12 +84,6 @@ export const MapSelectItemPage = () => {

return (
<div className="">
<TopBar
handleBackClick={() => {
navigate(-1);
}}
/>

<h2
className={`text-2xl text-center mt-[25%] transition-opacity duration-1000 ${
isActive === true ? 'opacity-100' : 'opacity-0'
Expand Down

0 comments on commit 68e23fc

Please sign in to comment.