Closed happylolonly closed 5 years ago
Here some plan to make task easier:
components/CalendarButton
It will be statefull component with state: { isDropdownOpen: <bool> }
.
I think now props not needed here.components/CalendarButton/Dropdown
with props: items
(Array)Dropdown
in CalendarButton
onClick
to change state of CalendarButton
and show/hide Dropdown
handleDropdownClick
, what allow me add some logic, when server's logic for adding to calendar will be done.I have thought and find out that server logic for calendar is not needed. We can do all on the client side! Interesting link - https://github.com/jasonsalzman/react-add-to-calendar/blob/master/src/ReactAddToCalendar.js
So, some updates for this task:
id
prop for button component.@elenagolovko , thanks)
Необходимо сделать кнопку добавления ивента в календарь, которая будет подходить под стилистику сайта. Пример есть например тут - https://afisha.tut.by/exhibition/vystavka_reptiliy_tropiki/