-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
impl document viewer page #83
base: dev
Are you sure you want to change the base?
Conversation
const RowWrapper = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
gap: 60px; | ||
`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이건 flexwrapper로 대체 가능할 것 같아요
const TitleWrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 10px; | ||
padding-bottom: 48px; | ||
`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이것도 flexwrapper로 쓰고 padding 대신 아래에 있는 컴포넌트랑 gap 가지게 묶어주세요
{ name: "카테고리", path: "/category" }, | ||
{ name: "서브카테고리", path: "/category/subcategory" }, | ||
{ name: "상세 페이지", path: "/category/subcategory/detail" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
사업명 까지는 못 맞춰도 예결산 조회 / 사업 계획서 까지는 맞춰주세요
/> | ||
<TextAreaWithHeader header="사업 일시" contents={["contents1"]} /> | ||
</RowWrapper> | ||
<div ref={thirdRow}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rowwrapper 쓰다가 중간에 div로 바뀐 것 같아요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코드 맨 위에 주석으로 어떤 컴포넌트인지 메모 남겨주면 좋을 것 같아요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/features/report 로 옮겨주세요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기도 /features/report 로 옮겨주세요
const RowWrapper = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
gap: 60px; | ||
`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 flexwrapper로 대체하는거 수정 안 됐어요
{/* <TableHeader> | ||
<TableCell type="Header" width="60px"> | ||
번호 | ||
</TableCell> | ||
<TableCell type="Header" width="260px"> | ||
날짜 | ||
</TableCell> | ||
<TableCell type="Header" width="302px"> | ||
내용 | ||
</TableCell> | ||
<TableCell type="Header" width="170px"> | ||
비고 | ||
</TableCell> | ||
</TableHeader> | ||
{contents.map((elm, index) => ( | ||
<React.Fragment key={index}> | ||
<TableRow isLast={index === contents.length - 1}> | ||
<TableCell type="Default" width="60px"> | ||
{index + 1} | ||
</TableCell> | ||
<TableCell | ||
type="Default" | ||
width="260px" | ||
>{`${formatDate(elm.startDate)} - ${formatDate(elm.endDate)}`}</TableCell> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분 왜 주석처리 된건가요?
<ContentsArea> | ||
<RowWrapper ref={firstRow}> | ||
<TextAreaWithHeader header="사업명" contents={["contents1"]} /> | ||
<TextAreaWithHeader header="사업 개요" contents={["contents1"]} /> | ||
</RowWrapper> | ||
<RowWrapper ref={secondRow}> | ||
<TextAreaWithHeader | ||
header="사업 준비 기간" | ||
contents={["contents1"]} | ||
/> | ||
<TextAreaWithHeader header="사업 일시" contents={["contents1"]} /> | ||
</RowWrapper> | ||
<RowWrapper ref={thirdRow}> | ||
<TextAreaWithHeader | ||
header="담당부서 / 담당자" | ||
contents={["contents1", "contents2"]} | ||
/> | ||
</RowWrapper> | ||
<RowWrapper ref={fourthRow}> | ||
<TextAreaWithHeader | ||
header="사업 추진 목적" | ||
contents={["contents1"]} | ||
/> | ||
</RowWrapper> | ||
<RowWrapper ref={fifthRow}> | ||
<TextAreaWithHeader | ||
header="사업 수혜 대상자" | ||
contents={["contents1"]} | ||
/> | ||
</RowWrapper> | ||
<RowWrapper ref={sixthRow}> | ||
<TextAreaWithHeader | ||
header="세부 사업 내용" | ||
contents={["contents1"]} | ||
/> | ||
</RowWrapper> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분은 mapping 해서 좀 더 깔끔하게 쓸 수 있을 것 같아요
const firstRow = useRef<HTMLDivElement>(null); | ||
const secondRow = useRef<HTMLDivElement>(null); | ||
const thirdRow = useRef<HTMLDivElement>(null); | ||
const fourthRow = useRef<HTMLDivElement>(null); | ||
const fifthRow = useRef<HTMLDivElement>(null); | ||
const sixthRow = useRef<HTMLDivElement>(null); | ||
const seventhRow = useRef<HTMLDivElement>(null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
각각 무슨 내용 가리키는지 변수 이름에 나타나면 좋을 것 같아요
</Typography> | ||
<TimelineTable contents={mockTimeLine} /> | ||
</RowWrapper> | ||
<TableArea /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이렇게 따로 컴포넌트 안 만들고 주석 한 줄 남겨도 될 것 같아요
fs={24} | ||
lh={24} | ||
fw="REGULAR" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 실제로 보니까 꽤 큰 것 같은데 디자이너 확인 필요할 것 같아요 @ChaeyeonAhn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`; | ||
|
||
const BreadCrumb: React.FC<BreadCrumbProps> = ({ | ||
items, | ||
enableLast = false, | ||
}) => { | ||
const itemsWithMain = [{ name: "메인", path: "/" }, ...items]; | ||
const itemWithMain: BreadCrumbItemDetails[] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
변수명 그대로 itemsWithMain이 적절할 것 같아요
const style = rowStyleResolver | ||
? rowStyleResolver(row.original) | ||
: undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분 어떤 prop인지 주석 남겨주세요
|
||
const TextAreaWithHeader: React.FC<TextAreaProps> = ({ header, contents }) => ( | ||
<TextAreaWithHeaderWrapper> | ||
<div>{header}</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여긴 왜 div 쓴건가요?
요약 *
It closes #82
스크린샷
생각해보니 페이지를 /example/casio로 만들고 있었네요..?
작업 끝나면 파일 위치 변경 예정
이후 Task *