* draft for tablet view * adapt sidebar to tablet view * split menubar to handle tablet and desktop separatly * split sidebar to handle tablet and desktop separatly * prettier day navigationin tablet view * added missing translations * coderabbit comments * fix UI of view switcher on tablet, remove hard text * fix style of selected view option * fix wrong I18n key * extracted menubar recurring components to own files * adjust test case of calendar component * refactor function change calendar view Co-authored-by: Camille Moussu <cmoussu@linagora.com> Co-authored-by: lethemanh <lethemanh@lethemanhs-MacBook-Pro.local>
This commit is contained in:
@@ -43,7 +43,14 @@ describe('Calendar - Timezone Integration', () => {
|
||||
|
||||
it('renders TimezoneSelector in week view', async () => {
|
||||
renderWithProviders(
|
||||
<CalendarApp calendarRef={mockCalendarRef} />,
|
||||
<CalendarApp
|
||||
setCurrentView={jest.fn()}
|
||||
onViewChange={jest.fn()}
|
||||
openSidebar={false}
|
||||
onCloseSidebar={jest.fn()}
|
||||
currentView="timeGridWeek"
|
||||
calendarRef={mockCalendarRef}
|
||||
/>,
|
||||
baseState
|
||||
)
|
||||
|
||||
@@ -57,7 +64,14 @@ describe('Calendar - Timezone Integration', () => {
|
||||
const setTimeZoneSpy = jest.spyOn(SettingsSlice, 'setTimeZone')
|
||||
|
||||
renderWithProviders(
|
||||
<CalendarApp calendarRef={mockCalendarRef} />,
|
||||
<CalendarApp
|
||||
setCurrentView={jest.fn()}
|
||||
onViewChange={jest.fn()}
|
||||
openSidebar={false}
|
||||
onCloseSidebar={jest.fn()}
|
||||
currentView="timeGridWeek"
|
||||
calendarRef={mockCalendarRef}
|
||||
/>,
|
||||
baseState
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user