Skip to content

Commit

Permalink
Merge pull request #128 from iziz9/develop
Browse files Browse the repository at this point in the history
Refactor: 이전 모달 컴포넌트 삭제 및 현재 모달 폴더 이동
  • Loading branch information
quokka-eating-carrots authored Oct 22, 2023
2 parents 5db7adc + da74af6 commit 4efda7c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 189 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Sidebar from './components/Main/Sidebar'
import { useEffect } from 'react'
import { cheakOpenBox } from './store/slices/searchChkSlice'
import { useDispatch } from 'react-redux'
import ModalWithHook from './components/ModalWithHook'
import Modal from './components/common/Modal'
import Overlay from './components/Style/Overlay'
import Interceptor from './hooks/useAxiosInterceptor'

Expand All @@ -25,7 +25,7 @@ const App = () => {
<ThemeProvider theme={theme}>
<Interceptor>
<Sidebar />
<ModalWithHook />
<Modal />
<Overlay />
<Header />
<Outlet />
Expand Down
1 change: 0 additions & 1 deletion src/components/Main/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ const FooterContainer = styled.footer`
background-color: ${COLORS.gray10};
color: ${COLORS.font};
margin-top: 50px;
/* bottom: 0; */
width: 100%;
position: relative;
padding: 30px 0;
Expand Down
184 changes: 0 additions & 184 deletions src/components/Style/Modal.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useSelector } from 'react-redux'
import { RootState } from '@src/store/config'
import { Mobile, PC } from '@src/hooks/useScreenHook'

const ModalWithHook = () => {
const Modal = () => {
const { isModalOpen, isConfirm, content, navigateOption, confirmAction } = useSelector(
(state: RootState) => state.modal
)
Expand Down Expand Up @@ -186,4 +186,4 @@ const ConfirmButton = styled.button`
height: 40px;
`

export default ModalWithHook
export default Modal

0 comments on commit 4efda7c

Please sign in to comment.