diff --git a/client/package-lock.json b/client/package-lock.json index 20902b318..644c90989 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1,6 +1,6 @@ { "name": "@advancedalgos/teams-client", - "version": "0.0.27", + "version": "0.0.28", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/client/src/views/manage-teams/components/ManageTeamsList.js b/client/src/views/manage-teams/components/ManageTeamsList.js index d4671e805..7800064b9 100644 --- a/client/src/views/manage-teams/components/ManageTeamsList.js +++ b/client/src/views/manage-teams/components/ManageTeamsList.js @@ -27,6 +27,9 @@ const styles = theme => ({ margin: `${theme.spacing.unit * 4}px auto`, padding: 0 }, + newTeamContainer: { + padding: `${theme.spacing.unit * 4}px 0` + }, cardGrid: { padding: `${theme.spacing.unit * 8}px 0` }, @@ -107,21 +110,23 @@ export const ManageTeamsList = ({ classes, match, ...props }) => ( } else { return (
- - - - - You don’t have any teams. Create one! - - - To begin developing on the Advanced Algos platform, as well as participate in Algobot competitions, - you'll need to create a team. A default trading algobot will be cloned and added to your team so - that you can begin experimenting right away. - - +
+ + + + + You don’t have any teams. Create one! + + + To begin developing on the Advanced Algos platform, as well as participate in Algobot competitions, + you'll need to create a team. A default trading algobot will be cloned and added to your team so + that you can begin experimenting right away. + + + - - + +
) } diff --git a/client/src/views/teams/components/TeamsFBView.js b/client/src/views/teams/components/TeamsFBView.js index bbdc3d6fc..504d55aa4 100644 --- a/client/src/views/teams/components/TeamsFBView.js +++ b/client/src/views/teams/components/TeamsFBView.js @@ -35,31 +35,47 @@ const styles = theme => ({ }) export const TeamsFBView = ({ classes, team }) => { - log.debug('ManageTeamProvileFBView', team, team.fb[0], team.fb[0].avatar) + log.debug('ManageTeamProvileFBView', team, team.fb[0]) + let avatar = 'https://aadevelop.blob.core.windows.net/module-teams/module-default/aa-avatar-default.png' + if (team.fb.length > 0) { + avatar = team.fb[0].avatar - let avatar = (team.fb[0].avatar !== undefined && team.fb[0].avatar !== null) ? team.fb[0].avatar : 'https://aadevelop.blob.core.windows.net/module-teams/module-default/aa-avatar-default.png' - - return ( - - -
- - - - {team.fb[0].name} - - - {team.fb[0].kind} - - -
-
-
- ) + return ( + + +
+ + + + {team.fb[0].name} + + + {team.fb[0].kind} + + +
+
+
+ ) + } else { + return ( + + +
+ + + No Financial Beings + + +
+
+
+ ) + } } TeamsFBView.propTypes = {