-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:component내 userProfile내 SideBar.tsx 파일생성
- Loading branch information
1 parent
448637c
commit 6c169ae
Showing
1 changed file
with
37 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import styles from './SideBar.module.scss'; | ||
|
||
const SideBar = (props: { children: React.ReactNode }) => { | ||
return ( | ||
<div className={styles.container}> | ||
<div className={styles.LeftSideBar}> | ||
<Link to="/" className={styles.link}> | ||
<div className={styles.iconContainer}> | ||
<i className={`fas fa-home ${styles.icon}`}></i> | ||
</div> | ||
</Link> | ||
<Link to="/timeline" className={styles.link}> | ||
<div className={styles.iconContainer}> | ||
<i className={`fas fa-info-circle ${styles.icon}`}></i> | ||
</div> | ||
</Link> | ||
<Link to="/explore" className={styles.link}> | ||
<div className={styles.iconContainer}> | ||
<i className={`fas fa-cog ${styles.icon}`}></i> | ||
</div> | ||
</Link> | ||
<Link to="/user" className={styles.link}> | ||
<div className={styles.iconContainer}> | ||
<i className={`fas fa-envelope ${styles.icon}`}></i> | ||
</div> | ||
</Link> | ||
</div> | ||
<main className={styles.main}> | ||
{props.children} | ||
</main> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SideBar; |