-
- Teams
-
-
- {showAllTeamMembers ? (
- setShowAllTeamMembers(false)}>hide people
- ) : (
- setShowAllTeamMembers(true)}>show people
- )}
-
+
+
+
+
+
+
+ {showAllTeamMembers ? (
+ setShowAllTeamMembers(false)}>
+ Collapse all
+
+ ) : (
+ setShowAllTeamMembers(true)}>
+ Expand all
+
+ )}
+
+
+
+
+ addTeamClick()}>
+ Add team
+
+
+
+ addTeamMemberClick()}>
+ Add team member
+
+
+
+
{/* NOTE: we had discussed refactoring team-list-retrieve to not include person data, */}
{/* so that team.teamMemberList would only include the personIds of team members */}
- {teamList.map((team, index) => (
-
- 0)}
- showIcons
- />
- {showAllTeamMembers && (
- <>
- {/* DO NOT REMOVE PASSED IN team */}
-
- >
- )}
-
- ))}
-
+ {teamList.map((team, index) => {
+ if (showTeam(team)) {
+ return (
+
+ 0)}
+ showIcons
+ />
+ {showAllTeamMembers && (
+ <>
+ {/* DO NOT REMOVE PASSED IN team */}
+
+ >
+ )}
+
+ );
+ } else {
+ return null;
+ }
+ })}
Jump to the "Sign in" /login page (Temporary Link)
@@ -130,23 +215,36 @@ const Teams = ({ classes, match }) => {
);
};
Teams.propTypes = {
- classes: PropTypes.object.isRequired,
- match: PropTypes.object,
};
-const styles = (theme) => ({
- ballotButtonIconRoot: {
- marginRight: 8,
- },
- addTeamButtonRoot: {
- width: 120,
- [theme.breakpoints.down('md')]: {
- width: '100%',
- },
- },
+const styles = () => ({
});
+const ActionBarItem = styled('div')`
+ padding-right: 15px;
+`;
+
+const ActionBarSection = styled('div')`
+ align-items: center;
+ border-right: 1px solid ${DesignTokenColors.neutralUI200};
+ display: flex;
+ font-size: .8em;
+ justify-content: flex-start;
+ padding-left: 15px;
+`;
+
+const ActionBarWrapper = styled('div')`
+ align-items: center;
+ display: flex;
+ justify-content: flex-start;
+ margin-top: 40px; // Temporary hack
+`;
+
const OneTeamWrapper = styled('div')`
`;
+const SearchBarWrapper = styled('div')`
+ margin-right: 10px;
+`;
+
export default withStyles(styles)(Teams);