Skip to content

Commit

Permalink
refactor: props 네이밍 규칙 준수
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeseungyun committed Aug 26, 2024
1 parent 4327b73 commit 8746fa8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/pages/Services/Review/ReviewCard.style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ export const Shortcut = styled.a`
text-decoration: none;
`;

export const Container = styled.div<{ $isHandle: boolean }>`
export const Container = styled.div<{ isHandle: boolean }>`
display: flex;
flex-direction: column;
padding: 10px 15px;
background: ${(props) => (props.$isHandle ? '#ff000050' : '#00BFFF10')};
background: ${(props) => (props.isHandle ? '#ff000050' : '#00BFFF10')};
border-radius: 10px;
transition: scale 0.3s, height 0.3s;
width: 100%;
Expand Down
5 changes: 2 additions & 3 deletions src/pages/Services/Review/ReviewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ import { Button, message, Modal } from 'antd';
import { useState } from 'react';
import { CaretUpOutlined, CaretDownOutlined } from '@ant-design/icons';
import { useDeleteReviewMutation, useSetReviewDismissedMutation } from 'store/api/review';
import { KOIN_URL } from 'constant';
import * as S from './ReviewCard.style';

interface Props {
review: ReviewContent;
currentPage: number;
}

const KOIN_URL = process.env.REACT_APP_API_PATH?.includes('stage') ? 'https://stage.koreatech.in' : 'https://koreatech.in';

export default function ReviewCard({ review, currentPage }: Props) {
const [isOpen, setIsOpen] = useState<boolean>(false);
const [isModalOpen, setIsModalOpen] = useState<boolean>(false);
Expand Down Expand Up @@ -54,7 +53,7 @@ export default function ReviewCard({ review, currentPage }: Props) {
};

return (
<S.Container $isHandle={review.isHaveUnhandledReport}>
<S.Container isHandle={review.isHaveUnhandledReport}>
<S.Row>
<S.RowItem>
<S.Item>
Expand Down
8 changes: 0 additions & 8 deletions src/pages/Services/Review/ReviewList.style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,3 @@ export const DataContainer = styled.div`
width: 100%;
margin-bottom: 30px;
`;

export const RightDownButton = styled.div`
position: fixed;
bottom: 100px;
right: 100px;
font-size: 40px;
cursor: pointer;
`;

0 comments on commit 8746fa8

Please sign in to comment.