Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
chunyenHuang committed Sep 15, 2020
2 parents e9fdd4f + 25ccdad commit e67ad53
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ Resources:


AdminCreateUserConfig:
AllowAdminCreateUserOnly: True
AllowAdminCreateUserOnly: false
InviteMessageTemplate:
EmailMessage: |
[幸福存摺] 開發測試登入資訊
Expand Down
2 changes: 1 addition & 1 deletion data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ https://github.com/aws-amplify/amplify-cli/issues/2187
Properties:
# Add this to make admin only
AdminCreateUserConfig:
AllowAdminCreateUserOnly: True
AllowAdminCreateUserOnly: false
InviteMessageTemplate:
EmailMessage: |
[幸福存摺] 開發測試登入資訊
Expand Down
16 changes: 15 additions & 1 deletion web/src/components/UserAvatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@ import PropTypes from 'prop-types';
import { Storage } from 'aws-amplify';

import Avatar from '@material-ui/core/Avatar';
import { makeStyles } from '@material-ui/core/styles';

const useStyles = makeStyles((theme) => ({
avatar: {
border: '1px solid rgba(255,255,255,0.3)',
},
}));

export default function UserAvatar({ username }) {
const classes = useStyles();

const [uri, setUri] = useState();
const [s3Key, setS3Key] = useState();

Expand All @@ -19,7 +28,12 @@ export default function UserAvatar({ username }) {
}, [username]);

return (
<Avatar alt={''} src={uri} />
<Avatar
alt={''}
src={uri}
variant="circle"
className={classes.avatar}
/>
);
}

Expand Down

0 comments on commit e67ad53

Please sign in to comment.