Skip to content

Commit

Permalink
fix: /make/snowball에서 뒤로가기 시 /make/snowball로
Browse files Browse the repository at this point in the history
  • Loading branch information
esthel7 authored and 5nxtnxtnxt committed Dec 3, 2023
1 parent df1bdc7 commit cf583c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions front/src/pages/Make/Snowball/MainDeco/MainDeco.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ import Steps from './Steps';
import { DecoProvider } from './DecoProvider';
import MakeSnowballCanvas from './MakeSnowballCanvas';

const MainDeco = () => {
interface MainDecoProps {
set: React.Dispatch<React.SetStateAction<boolean>>;
}

const MainDeco = (props: MainDecoProps) => {
return (
<DecoProvider>
<MakeSnowballCanvas />
<UIContainer>
<Steps />
</UIContainer>
<Prev set={null} />
<Prev set={props.set} />
</DecoProvider>
);
};
Expand Down
2 changes: 1 addition & 1 deletion front/src/pages/Make/Snowball/Snowball.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const Snowball = () => {
return (
<>
{make ? (
<MainDeco />
<MainDeco set={setMake} />
) : (
<>
<SnowGlobeCanvas />
Expand Down

0 comments on commit cf583c0

Please sign in to comment.