decentfund / weekendplanner

0 stars 0 forks source link

User status component #27

Open igorline opened 6 years ago

igorline commented 6 years ago

image

romochka commented 6 years ago

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

palevoo commented 6 years ago

vote's structure/store needed to complete the ticket

igorline commented 6 years ago

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 commented 6 years ago

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