-
Notifications
You must be signed in to change notification settings - Fork 44
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
[김미소] week12 #382
The head ref may contain hidden characters: "part2-\uAE40\uBBF8\uC18C-week12"
[김미소] week12 #382
Conversation
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.
그동안 정말 수고하셨어요 👍
감사합니다 :)
@@ -3,7 +3,7 @@ interface IButtonModule { | |||
children: React.ReactNode; | |||
$btnClass: string; | |||
$BeforButtonIcon?: string; | |||
$id?: string; | |||
$id?: string | number; |
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.
string | number 이면 사실상 아주 광범위한 범위라서 아예 string 또는 number 로 박아두고,
button컴포넌트를 사용하는 곳들에서 타입을 맞춰서 넣어주는 걸 추천드려요!
)} | ||
</> | ||
<> | ||
<div style={{position:'relative'}}> |
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 { value: contant, isLoading: contantLoading } = | ||
useFatchDataLoad<IFolderContentApi>(dynamicAPI); | ||
const [search, setSearch] = useState<any>(); | ||
const [searchContatn, setSearchContant] = useState<any>(); |
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.
any 는 왠만하면 지양해주세요!
const [searchContatn, setSearchContant] = useState<any>(); | |
const [searchContant, setSearchContant] = useState<string>(); |
<div> | ||
</FolderContainHead> | ||
|
||
{loading ? |
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.
의미상으로 loading 이면 이 와야하는데 반대로 적혀있네요!
useFatchDataLoad<IFolderContentApi>(`${FOLDER_CONTANT_LIST_API}?folderId=${id}`); | ||
|
||
const filter = menus?.data.some(data => `${data.id}` === id) | ||
if(filter === false) { |
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.
if(filter === false) { | |
if(!filter) { |
요구사항
기본
심화
주요 변경사항