Skip to content

Commit

Permalink
remove : FormOption context 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
hyesung99 committed Jan 20, 2024
1 parent fa6b67a commit eb97c3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 129 deletions.
121 changes: 0 additions & 121 deletions src/context/FormOptionContext.tsx

This file was deleted.

12 changes: 4 additions & 8 deletions src/pages/FormLayout/FormLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { FormOptionContextProvider } from '@/context/FormOptionContext';

import { PropsWithChildren, useEffect, useState } from 'react';
import { useLocation } from 'react-router-dom';

Expand Down Expand Up @@ -36,12 +34,10 @@ const FormLayout = ({ children }: PropsWithChildren) => {
}, [location.pathname]);

return (
<FormOptionContextProvider>
<Container>
<Title>{title}</Title>
<Content>{children}</Content>
</Container>
</FormOptionContextProvider>
<Container>
<Title>{title}</Title>
<Content>{children}</Content>
</Container>
);
};

Expand Down

0 comments on commit eb97c3b

Please sign in to comment.