You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
orario/src/components/HamburgerMenu.jsx

45 lines
1.6 KiB
React

import { ComboBox } from './ComboBox.jsx'
import { Icon } from './Icon.jsx'
2 years ago
export const HamburgerMenu = ({ onClose, mode, setMode, source, setSource }) => {
return (
<div class="menu">
<div class="header">
<button class="flat icon" onClick={onClose}>
<Icon name="close" />
</button>
2 years ago
<div class="item logo">
<img src="logo-circuit-board.svg" alt="logo" /> / <span>Orario</span>
</div>
</div>
<div class="options">
2 years ago
<div class="label">Gruppo Corsi</div>
<ComboBox
2 years ago
value={source}
setValue={setSource}
options={[
2 years ago
{ value: 'anno-1', label: 'I' },
{ value: 'anno-2', label: 'II' },
{ value: 'anno-3', label: 'III' },
{ value: 'magistrale', label: 'Magistrale' },
{ value: 'tutti', label: 'Tutti' },
]}
/>
<div class="label">Visualizzazione</div>
<ComboBox
value={mode}
setValue={setMode}
options={[
{ value: 'course', label: 'Corsi' },
{ value: 'work-week-v', label: 'Settimana' },
{
value: 'work-week-h',
label: 'Settimana (Trasposto)',
},
]}
/>
</div>
</div>
)
}