-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add mygroup in profile and modify style
- Loading branch information
1 parent
1485155
commit 176583d
Showing
5 changed files
with
157 additions
and
64 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { StyledPanelBox, StyledPanelText } from './UserTabs.styled'; | ||
|
||
function UserInfoBasic({ description = '', wantToDoList = [], share = '' }) { | ||
return ( | ||
<StyledPanelBox> | ||
<StyledPanelText | ||
sx={{ borderBottom: '1px solid #F3F3F3', paddingBottom: '6px' }} | ||
> | ||
<p>可分享</p> | ||
<span>{share || '尚未填寫'}</span> | ||
</StyledPanelText> | ||
<StyledPanelText | ||
sx={{ borderBottom: '1px solid #F3F3F3', padding: '6px 0' }} | ||
> | ||
<p>想一起</p> | ||
<span>{wantToDoList || '尚未填寫'}</span> | ||
</StyledPanelText> | ||
<StyledPanelText sx={{ paddingTop: '6px' }}> | ||
<p>簡介</p> | ||
<div> | ||
{description | ||
? description.split('\n').map((d) => <span>{d}</span>) | ||
: '尚未填寫'} | ||
</div> | ||
</StyledPanelText> | ||
</StyledPanelBox> | ||
); | ||
} | ||
|
||
export default UserInfoBasic; |
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