Skip to content

Commit

Permalink
[FE] FIX: AvailablePage에서 필요없는 코드 삭제#1677
Browse files Browse the repository at this point in the history
  • Loading branch information
jnkeniaem committed Aug 13, 2024
1 parent a6b4e1d commit e9da749
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ const SearchCabinetDetails = (props: ISearchDetail) => {
);
const { openCabinet, closeCabinet } = useMenu();
const CabinetIcon =
cabinetIconComponentMap[
cabinetInfo?.lentType || CabinetType.PRIVATE
];
cabinetIconComponentMap[cabinetInfo?.lentType || CabinetType.PRIVATE];

const clickSearchItem = () => {
if (
Expand Down Expand Up @@ -150,7 +148,6 @@ const SearchCabinetDetails = (props: ISearchDetail) => {
);
};


const WrapperStyled = styled.div`
width: 350px;
height: 110px;
Expand Down Expand Up @@ -252,4 +249,3 @@ const ButtonWrapper = styled.div`
`;

export default SearchCabinetDetails;

Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ const SearchNoCabinetDetails = (props: ISearchDetail) => {
);
};


const WrapperStyled = styled.div`
width: 350px;
height: 110px;
Expand Down
6 changes: 1 addition & 5 deletions frontend/src/Cabinet/pages/AvailablePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ const AvailablePage = () => {

useEffect(() => {
deleteRecoilPersistFloorSection();
setTimeout(() => {
// 새로고침 광클 방지를 위한 초기 로딩 딜레이
setIsLoaded(true);
}, 500);
}, []);

useEffect(() => {
Expand Down Expand Up @@ -156,7 +152,7 @@ const AvailablePage = () => {
/>
</MultiToggleSwitchStyled>

{isLoaded && cabinets ? (
{Object.keys(cabinets).length ? (
Object.entries(cabinets).map(([key, value]) => (
<FloorContainer
key={key}
Expand Down

0 comments on commit e9da749

Please sign in to comment.