-
Notifications
You must be signed in to change notification settings - Fork 4
create profile component #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ahdinosaur
commented
Jun 20, 2017
•
edited by gregorykan
Loading
edited by gregorykan
- app.TextField component and story
- app.TextAreaField component and story
- app.ImageField component and story
- use https://github.com/mosch/react-avatar-editor
- add file input (to click and pick file)
- test drag and drop file works
- add zoom slider
- store image data in form state
- agents.Profile component and story
- agents.Profile editing and display modes
- agents.ProfileIcon component and story
agents/components/Avatar.js
Outdated
@@ -16,7 +16,7 @@ function Avatar (props) { | |||
const { | |||
size, | |||
styles, | |||
agent: { profile: { name, image } } | |||
image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm... i'm not sure how i feel about this change.
my thinking was that the components we are building are not strictly generic, they are re-usable but specific to the data model concepts in Cobuy. so since an "agent" is a first class data model concept, maybe we should build our components to accept them as arguments directly, to avoid all sorts of destructuring and restructuring code. or, what if we want to later include the agent name when the avatar is large. or put a star icon in the avatar if they are the admin of the current group.
but maybe i'm being silly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, i had some questions around levels here - let's discuss after lunch!