Skip to content

Commit

Permalink
[Fix]뒤로가기 기능 롤백
Browse files Browse the repository at this point in the history
뒤로가기 기능 삭제
이메일관련 메인페이지 오류 해결
Issues #15
  • Loading branch information
김병현 authored and 김병현 committed Sep 6, 2023
1 parent dd05133 commit dc156cc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
11 changes: 10 additions & 1 deletion client/src/components/Signups/EmailSignup.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// client/src/components/Signups/EmailSignup.tsx
import axios from 'axios';
import styled from 'styled-components';
import React, { useState } from 'react';
Expand Down Expand Up @@ -71,7 +72,8 @@ type EmailSignupModalProps = {
onRequestVerification: () => void;
};

// 스타일 컴포넌트 정의

//모달 배경
const ModalBackground = styled.div`
display: flex;
justify-content: center;
Expand All @@ -84,6 +86,7 @@ const ModalBackground = styled.div`
background-color: rgba(0, 0, 0, 0.5);
`;

//모달 컨테이너
const ModalContainer = styled.div`
position: relative;
background-color: white;
Expand All @@ -95,6 +98,8 @@ const ModalContainer = styled.div`
align-items: center;
`;


//닫기 버튼
const CloseButton = styled.button`
position: absolute;
top: 10px;
Expand All @@ -105,16 +110,19 @@ const CloseButton = styled.button`
cursor: pointer;
`;

//제목 :이메일로 회원가입
const Title = styled.h2`
margin-bottom: 20px;
font-size: 1.6rem;
`;

//라벨 : 이메일
const Label = styled.label`
align-self: flex-start;
margin-top: 10px;
`;

//이메일 입력창
const Input = styled.input`
width: 100%;
padding: 10px;
Expand All @@ -123,6 +131,7 @@ const Input = styled.input`
border-radius: 5px;
`;

//이메일 인증요청 버튼
const SignupButton = styled.button`
width: 100%;
padding: 10px;
Expand Down
9 changes: 5 additions & 4 deletions client/src/page/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ const MainPage = () => {
{isEmailVerificationModalOpen && <EmailVerificationModal onClose={closeEmailVerificationModal} onNextStep={openPasswordSettingModal} />}
{isPasswordSettingModalOpen && (
<PasswordSettingModal
onClose={() => {
handleLogin();
closePasswordSettingModal();
}}
onClose={() => {
handleLogin();
closePasswordSettingModal();
}}
email="[email protected]" // 예시 email 값을 전달. 실제 필요한 email 값을 사용하세요.
/>
)}
</Container>
Expand Down
5 changes: 5 additions & 0 deletions client/src/store/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@ import { stockOrderPriceReducer } from "../reducer/StockOrderPrice-Reducer";
import { expandScreenReducer } from "../reducer/ExpandScreen-Reducer";
import { stockOrderSetReducer } from "../reducer/StockOrderSet-Reducer";



const store = configureStore({
reducer: {
stockOrderType: stockOrderTypeReducer,
stockPriceType: stockPriceTypeReducer,
stockOrderPrice: stockOrderPriceReducer,
expandScreen: expandScreenReducer,
stockOrderSet: stockOrderSetReducer,

},
});



export default store;

0 comments on commit dc156cc

Please sign in to comment.