Skip to content

Commit

Permalink
shift workspace tab (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
roymoran authored Nov 4, 2020
1 parent 84febf0 commit 122ac6e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pub",
"version": "1.4.0",
"version": "1.5.0",
"private": true,
"scripts": {
"build": "gatsby build --prefix-paths",
Expand Down
54 changes: 27 additions & 27 deletions src/components/projects/project-workspace/project-workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -484,33 +484,7 @@ export const ProjectWorkspace: FC<ProjectWorkspaceProps> = (props) => {
</ButtonWrapper>
</Buttons>
<MenuWrapper>
<MultiTabMenu tabs={['Team', 'Workspace']}>
<TabContentContainer>
{project.projectUsers.length > 0 ? (
<Fragment>
{project.projectUsers.map((user) => {
return (
<Link
to={`/profile/${user.userId}/`}
key={user.userId}
>
<ImageContainer>
<CircularImage
src={
user.profilePictureUrl ||
defaultProfileImage
}
/>
<div>{user.username}</div>
</ImageContainer>
</Link>
);
})}
</Fragment>
) : (
<div>Currently no members.</div>
)}
</TabContentContainer>
<MultiTabMenu tabs={['Workspace', 'Team']}>
<TabContentContainerWorkspace>
{project.workspaceAppInstalled ? (
<Fragment>
Expand Down Expand Up @@ -591,6 +565,32 @@ export const ProjectWorkspace: FC<ProjectWorkspaceProps> = (props) => {
</Fragment>
)}
</TabContentContainerWorkspace>
<TabContentContainer>
{project.projectUsers.length > 0 ? (
<Fragment>
{project.projectUsers.map((user) => {
return (
<Link
to={`/profile/${user.userId}/`}
key={user.userId}
>
<ImageContainer>
<CircularImage
src={
user.profilePictureUrl ||
defaultProfileImage
}
/>
<div>{user.username}</div>
</ImageContainer>
</Link>
);
})}
</Fragment>
) : (
<div>Currently no members.</div>
)}
</TabContentContainer>
</MultiTabMenu>
</MenuWrapper>
<MenuWrapper>
Expand Down

0 comments on commit 122ac6e

Please sign in to comment.