-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #445 from nightowlzz/part3-김미소-week14
[김미소] week14
- Loading branch information
Showing
57 changed files
with
2,043 additions
and
875 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,11 @@ | |
"next/babel" | ||
], | ||
"plugins": [ | ||
"babel-plugin-styled-components" | ||
[ | ||
"styled-components", | ||
{ | ||
"ssr": true | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,25 @@ | ||
import { IModal } from '../../modal/interface'; | ||
import { IModal } from '@/src/constant/modal'; | ||
import { CheckBoxWrap } from './checkBoxStyle'; | ||
|
||
interface ICheckBoxData { | ||
$data: IModal['$modalData']; | ||
} | ||
|
||
function CheckBox({ $data }: ICheckBoxData) { | ||
if ($data?.data) { | ||
return ( | ||
<CheckBoxWrap className="chk--list-type1"> | ||
{$data && | ||
$data.data.map((list: any) => ( | ||
<div className="inner" key={list.id}> | ||
<input type="checkbox" id={list.id} /> | ||
<label htmlFor={list.id}> | ||
<strong>{list.name}</strong> | ||
<span>{list.link.count}개 링크</span> | ||
</label> | ||
</div> | ||
))} | ||
</CheckBoxWrap> | ||
); | ||
} else { | ||
return ( | ||
<div> | ||
<input type="text" /> | ||
<label htmlFor=""></label> | ||
</div> | ||
); | ||
} | ||
function CheckBox({ $data }: IModal<any>['modalData']) { | ||
return ( | ||
<CheckBoxWrap className='chk--list-type1'> | ||
{$data && | ||
$data?.map((list: any) => ( | ||
<div | ||
className='inner' | ||
key={list.id}> | ||
<input | ||
type='checkbox' | ||
id={list.id} | ||
/> | ||
<label htmlFor={list.id}> | ||
<strong>{list.name}</strong> | ||
<span>{list.link.count}개 링크</span> | ||
</label> | ||
</div> | ||
))} | ||
</CheckBoxWrap> | ||
); | ||
} | ||
export default CheckBox; |
Oops, something went wrong.