Skip to content

Commit

Permalink
feat: 그만두기 시 로그인화면
Browse files Browse the repository at this point in the history
  • Loading branch information
SooY2 committed Mar 11, 2024
1 parent fa24c2b commit 9fd5778
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/register/components/RegisterHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { css } from '@emotion/react';
import { ArrowLeft } from '../assets/svgs/0_index';
import styled from '@emotion/styled';
import { useNavigate } from 'react-router-dom';

const RegisterHeader = ({
isFirst = false,
Expand All @@ -11,11 +12,14 @@ const RegisterHeader = ({
percent: number;
onPrev?: () => void;
}) => {
const navigate = useNavigate();
return (
<header css={headerStyles}>
<div css={navStyles}>
{isFirst ? (
<ExitBtn type="button">그만두기</ExitBtn>
<ExitBtn type="button" onClick={() => navigate('/login')}>
그만두기
</ExitBtn>
) : (
<CustomArrowLeft onClick={onPrev} />
)}
Expand Down

0 comments on commit 9fd5778

Please sign in to comment.