react-icons/bs#BsCalendarWeek JavaScript Examples

The following examples show how to use react-icons/bs#BsCalendarWeek. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FloatingActionButton.js    From anutimetable with Creative Commons Attribution Share Alike 4.0 International 6 votes vote down vote up
HiddenDaysAction = ({ setMenuOpen, setHiddenDays, hiddenDays }) => {
  const [hiddenDaysOpen, setHiddenDaysOpen] = useState(false)
  return <>
    <FABAction
      className='fab-action'
      title='Toggle Day Visibility'
      content={<BsCalendarWeek size='1.25em' className='m-1' />}
      onClick={() => {
        setHiddenDaysOpen(true)
        setMenuOpen(false)
      }}
    />
    <SelectModal
      title='Toggle Visible Days'
      label='Select days to hide:'
      visible={hiddenDaysOpen}
      options={daysOfWeek}
      value={hiddenDays}
      multiple
      onChange={selected => {
        setHiddenDays(selected)
        localStorage.setItem('hiddenDays', selected)
      }}
      onHide={() => setHiddenDaysOpen(false)}
    />
  </>
}