Skip to content

Commit

Permalink
fix: maindeco routing
Browse files Browse the repository at this point in the history
Co-authored-by: 5nxtnxtnxt <[email protected]>
Co-authored-by: ChanWoo Kim <[email protected]>
  • Loading branch information
3 people committed Dec 1, 2023
1 parent 2cede2e commit b7d65a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion front/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ const App = () => {
>
<Route path="" element={<Nickname />} />
<Route path="snowball" element={<Snowball />} />
<Route path="maindeco" element={<MainDeco />} />
</Route>

<Route path="/maindeco" element={<MainDeco />} />

<Route
path="/main"
element={
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 @@ -57,7 +57,7 @@ const Snowball = () => {
const [make, setMake] = useState(false);

useEffect(() => {
make ? navigate('/make/maindeco') : null;
make ? navigate('/maindeco') : null;
}, [make, navigate]);

return (
Expand Down
4 changes: 2 additions & 2 deletions front/src/pages/Visit/Deco/Steps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const StyledBottomWrap = styled.div`
const Steps = () => {
const [step, setStep] = useState(0);
const [lastBox, setLastBox] = useState(false);
const { setColor } = useContext(DecoContext);
const { color, setColor } = useContext(DecoContext);
const { userData } = useContext(SnowBallContext);
const doneStep = -1;
const selectDeco = 0;
Expand Down Expand Up @@ -229,7 +229,7 @@ const Steps = () => {
{step === selectColor ? (
<>
<ColorInput
value={'#ff0000'}
value={color}
onChange={e => setColor(e.target.value)}
/>
<p>์žฅ์‹ ์ƒ‰์ƒ์„ ์„ ํƒํ•ด์ฃผ์„ธ์š”</p>
Expand Down

0 comments on commit b7d65a6

Please sign in to comment.