happylolonly / events-free-spa

:shaved_ice: Free events!
https://eventsfree.by
8 stars 5 forks source link

Invite friend link #29

Open happylolonly opened 5 years ago

happylolonly commented 5 years ago

Need to create InviteFriend component with link to http://gowithme.surge.sh. It will be simple link after hovering on it will be shown small dropdown with text 'Приласи своих друзей через приложение gowithme'.

Component should be added to new row after social buttons in ./EventDetailsFooter. And created in this folder.

image

niaimko commented 5 years ago

Took this task.

happylolonly commented 5 years ago

@VladKopylov help Niam please)

happylolonly commented 5 years ago

@VladKopylov, here some updates. Let's reuse CalendarButton/Dropdown for this dropdown.

Some plan:

  1. Move CalendarButton/Dropdown to just components/Dropdown - it will be common component.
  2. Move current logic from CalendarButton/Dropdown to CalendarButton with something like this
    <Dropdown>
    .map(item...
    return <button onClick...
    </Dropdown>

    New component will be very easy - I think just one div with styles Make sure it will have width: 100% to fill all parent.

  3. Reuse this component in InviteFriend
  4. Check that all is working)
  5. Cool!