Skip to content
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

User status component #27

Open
4 tasks done
igorline opened this issue May 1, 2018 · 4 comments
Open
4 tasks done

User status component #27

igorline opened this issue May 1, 2018 · 4 comments
Assignees

Comments

@igorline
Copy link
Contributor

igorline commented May 1, 2018

image

  • Address clipping (first 4 and last 4 digits)
  • Icon generator
  • Vote status display (absent, no vote, yes, no)
  • "It's you"
@romochka
Copy link
Collaborator

romochka commented May 3, 2018

icon generator https://github.com/ethereum/blockies

@palevoo
Copy link
Collaborator

palevoo commented May 20, 2018

vote's structure/store needed to complete the ticket

@igorline
Copy link
Contributor Author

Ok! Here it comes :)

export const defaultState = {
  attendees: {
    default: {
      address: '',
    },
  },
  movies: {
    '23155': {
      id: '23155'
      votes: ['17690', '8999', '11007']
    },
    ...
  },
  votes: {
    '17690': {
      status: 'yes',
      amount: 50,
      attendee: 'default',
    },
    '8999': {
      status: 'no',
      amount: 10,
      attendee: 'default',
    },
    ...
  }
  attendeesIDs: ['default'],
};

@igorline
Copy link
Contributor Author

Let's call it event reducer, that's the data we get from SC

palevoo added a commit that referenced this issue May 30, 2018
palevoo added a commit that referenced this issue May 30, 2018
palevoo added a commit that referenced this issue Jun 1, 2018
Status component with tests, closes #27

prettier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants