chore: update twake-mui dependency and use radius.lg for create event button
This commit is contained in:
@@ -443,11 +443,14 @@ describe("calendar Availability search", () => {
|
|||||||
screen.getByRole("button", { name: "event.createEvent" })
|
screen.getByRole("button", { name: "event.createEvent" })
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
await waitFor(() => {
|
await waitFor(
|
||||||
expect(screen.getAllByText("event.createEvent")).toHaveLength(2);
|
() => {
|
||||||
expect(screen.getAllByText(/New User/i)).toHaveLength(2);
|
expect(screen.getAllByText("event.createEvent")).toHaveLength(2);
|
||||||
});
|
expect(screen.getAllByText(/New User/i)).toHaveLength(2);
|
||||||
});
|
},
|
||||||
|
{ timeout: 10000 }
|
||||||
|
);
|
||||||
|
}, 15000);
|
||||||
|
|
||||||
it("open window with attendees filled after temp search on enter in temp input", async () => {
|
it("open window with attendees filled after temp search on enter in temp input", async () => {
|
||||||
const spy = jest
|
const spy = jest
|
||||||
@@ -482,11 +485,14 @@ describe("calendar Availability search", () => {
|
|||||||
fireEvent.keyDown(input, { key: "Enter" });
|
fireEvent.keyDown(input, { key: "Enter" });
|
||||||
});
|
});
|
||||||
|
|
||||||
await waitFor(() => {
|
await waitFor(
|
||||||
expect(screen.getAllByText("event.createEvent")).toHaveLength(2);
|
() => {
|
||||||
expect(screen.getAllByText(/New User/i)).toHaveLength(2);
|
expect(screen.getAllByText("event.createEvent")).toHaveLength(2);
|
||||||
});
|
expect(screen.getAllByText(/New User/i)).toHaveLength(2);
|
||||||
});
|
},
|
||||||
|
{ timeout: 10000 }
|
||||||
|
);
|
||||||
|
}, 15000);
|
||||||
|
|
||||||
it("BUGFIX: can untoggle all calendar.personal", async () => {
|
it("BUGFIX: can untoggle all calendar.personal", async () => {
|
||||||
await act(async () =>
|
await act(async () =>
|
||||||
|
|||||||
@@ -199,6 +199,8 @@ describe("RepeatEvent Component", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe("Repeat Event Integration Tests", () => {
|
describe("Repeat Event Integration Tests", () => {
|
||||||
|
// Increase timeout for all tests in this describe block
|
||||||
|
jest.setTimeout(30000);
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
jest.clearAllMocks();
|
jest.clearAllMocks();
|
||||||
jest.restoreAllMocks();
|
jest.restoreAllMocks();
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { fireEvent, render, screen } from "@testing-library/react";
|
import { fireEvent, render, screen } from "@testing-library/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { ResponsiveDialog } from "../../src/components/Dialog";
|
import { ResponsiveDialog } from "../../src/components/Dialog";
|
||||||
import { Button, TextField } from "twake-mui";
|
import { Button, TextField } from "@linagora/twake-mui";
|
||||||
import { TwakeMuiThemeProvider } from "twake-mui";
|
import { TwakeMuiThemeProvider } from "@linagora/twake-mui";
|
||||||
|
|
||||||
describe("ResponsiveDialog", () => {
|
describe("ResponsiveDialog", () => {
|
||||||
const mockOnClose = jest.fn();
|
const mockOnClose = jest.fn();
|
||||||
|
|||||||
@@ -296,7 +296,7 @@ describe("EventPreviewModal - Recurring Event Interactions", () => {
|
|||||||
|
|
||||||
await waitFor(() => {
|
await waitFor(() => {
|
||||||
expect(
|
expect(
|
||||||
screen.getByText("editModeDialog.updateRecurrentEvent")
|
screen.getByText("editModeDialog.deleteRecurrentEvent")
|
||||||
).toBeInTheDocument();
|
).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -381,7 +381,7 @@ describe("EventPreviewModal - Recurring Event Interactions", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
screen.queryByText("editModeDialog.updateRecurrentEvent")
|
screen.queryByText("editModeDialog.deleteRecurrentEvent")
|
||||||
).not.toBeInTheDocument();
|
).not.toBeInTheDocument();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -416,7 +416,7 @@ describe("Delete Recurring Event Instance", () => {
|
|||||||
|
|
||||||
await waitFor(() => {
|
await waitFor(() => {
|
||||||
expect(
|
expect(
|
||||||
screen.getByText("editModeDialog.updateRecurrentEvent")
|
screen.getByText("editModeDialog.deleteRecurrentEvent")
|
||||||
).toBeInTheDocument();
|
).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -463,7 +463,7 @@ describe("Delete Recurring Event Instance", () => {
|
|||||||
|
|
||||||
await waitFor(() => {
|
await waitFor(() => {
|
||||||
expect(
|
expect(
|
||||||
screen.getByText("editModeDialog.updateRecurrentEvent")
|
screen.getByText("editModeDialog.deleteRecurrentEvent")
|
||||||
).toBeInTheDocument();
|
).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import React, { PropsWithChildren } from "react";
|
|||||||
import { Provider } from "react-redux";
|
import { Provider } from "react-redux";
|
||||||
import { MemoryRouter } from "react-router-dom";
|
import { MemoryRouter } from "react-router-dom";
|
||||||
import { I18nContext } from "twake-i18n";
|
import { I18nContext } from "twake-i18n";
|
||||||
import { TwakeMuiThemeProvider } from "twake-mui";
|
import { TwakeMuiThemeProvider } from "@linagora/twake-mui";
|
||||||
import type { AppStore, RootState } from "../../src/app/store";
|
import type { AppStore, RootState } from "../../src/app/store";
|
||||||
import { setupStore } from "../../src/app/store";
|
import { setupStore } from "../../src/app/store";
|
||||||
interface ExtendedRenderOptions extends Omit<RenderOptions, "queries"> {
|
interface ExtendedRenderOptions extends Omit<RenderOptions, "queries"> {
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ const config: Config = {
|
|||||||
],
|
],
|
||||||
testEnvironment: "jsdom",
|
testEnvironment: "jsdom",
|
||||||
testMatch: ["**/*.test.tsx"],
|
testMatch: ["**/*.test.tsx"],
|
||||||
|
testTimeout: 15000,
|
||||||
transform: {
|
transform: {
|
||||||
"^.+\\.tsx?$": ["ts-jest", { tsconfig: "tsconfig.json" }],
|
"^.+\\.tsx?$": ["ts-jest", { tsconfig: "tsconfig.json" }],
|
||||||
"^.+\\.(js|jsx|mjs)$": "babel-jest",
|
"^.+\\.(js|jsx|mjs)$": "babel-jest",
|
||||||
@@ -59,6 +60,7 @@ const config: Config = {
|
|||||||
],
|
],
|
||||||
testEnvironment: "node",
|
testEnvironment: "node",
|
||||||
testMatch: ["**/*.test.ts"],
|
testMatch: ["**/*.test.ts"],
|
||||||
|
testTimeout: 15000,
|
||||||
transform: {
|
transform: {
|
||||||
"^.+\\.tsx?$": ["ts-jest", { tsconfig: "tsconfig.json" }],
|
"^.+\\.tsx?$": ["ts-jest", { tsconfig: "tsconfig.json" }],
|
||||||
"^.+\\.(js|jsx|mjs)$": "babel-jest",
|
"^.+\\.(js|jsx|mjs)$": "babel-jest",
|
||||||
|
|||||||
Generated
+395
-240
File diff suppressed because it is too large
Load Diff
+2
-1
@@ -12,6 +12,7 @@
|
|||||||
"@fullcalendar/moment-timezone": "^6.1.19",
|
"@fullcalendar/moment-timezone": "^6.1.19",
|
||||||
"@fullcalendar/react": "^6.1.17",
|
"@fullcalendar/react": "^6.1.17",
|
||||||
"@fullcalendar/timegrid": "^6.1.17",
|
"@fullcalendar/timegrid": "^6.1.17",
|
||||||
|
"@linagora/twake-mui": "1.1.0",
|
||||||
"@mui/icons-material": "^7.1.2",
|
"@mui/icons-material": "^7.1.2",
|
||||||
"@mui/material": "^7.1.2",
|
"@mui/material": "^7.1.2",
|
||||||
"@mui/x-date-pickers": "^8.14.0",
|
"@mui/x-date-pickers": "^8.14.0",
|
||||||
@@ -30,7 +31,6 @@
|
|||||||
"react-router-dom": "^6.23.1",
|
"react-router-dom": "^6.23.1",
|
||||||
"redux-first-history": "^5.2.0",
|
"redux-first-history": "^5.2.0",
|
||||||
"twake-i18n": "^0.3.0",
|
"twake-i18n": "^0.3.0",
|
||||||
"twake-mui": "file:../twake-ui/packages/twake-mui",
|
|
||||||
"web-vitals": "^2.1.4"
|
"web-vitals": "^2.1.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -90,6 +90,7 @@
|
|||||||
"jest-preview": "^0.3.1",
|
"jest-preview": "^0.3.1",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"ts-jest": "^29.4.6",
|
"ts-jest": "^29.4.6",
|
||||||
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^4.9.5"
|
"typescript": "^4.9.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ import { Loading } from "./components/Loading/Loading";
|
|||||||
import HandleLogin from "./features/User/HandleLogin";
|
import HandleLogin from "./features/User/HandleLogin";
|
||||||
import CalendarLayout from "./components/Calendar/CalendarLayout";
|
import CalendarLayout from "./components/Calendar/CalendarLayout";
|
||||||
import { Error } from "./components/Error/Error";
|
import { Error } from "./components/Error/Error";
|
||||||
import { TwakeMuiThemeProvider } from "twake-mui";
|
import { TwakeMuiThemeProvider } from "@linagora/twake-mui";
|
||||||
import { useAppDispatch, useAppSelector } from "./app/hooks";
|
import { useAppDispatch, useAppSelector } from "./app/hooks";
|
||||||
import { push } from "redux-first-history";
|
import { push } from "redux-first-history";
|
||||||
import { ErrorSnackbar } from "./components/Error/ErrorSnackbar";
|
import { ErrorSnackbar } from "./components/Error/ErrorSnackbar";
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
ListItemAvatar,
|
ListItemAvatar,
|
||||||
ListItemText,
|
ListItemText,
|
||||||
TextField,
|
TextField,
|
||||||
} from "twake-mui";
|
} from "@linagora/twake-mui";
|
||||||
import {
|
import {
|
||||||
type ReactNode,
|
type ReactNode,
|
||||||
useCallback,
|
useCallback,
|
||||||
@@ -17,11 +17,11 @@ import {
|
|||||||
} from "react";
|
} from "react";
|
||||||
import { searchUsers } from "../../features/User/userAPI";
|
import { searchUsers } from "../../features/User/userAPI";
|
||||||
import PeopleOutlineOutlinedIcon from "@mui/icons-material/PeopleOutlineOutlined";
|
import PeopleOutlineOutlinedIcon from "@mui/icons-material/PeopleOutlineOutlined";
|
||||||
import { Chip, useTheme } from "twake-mui";
|
import { Chip, useTheme } from "@linagora/twake-mui";
|
||||||
import { getAccessiblePair } from "../Calendar/utils/calendarColorsUtils";
|
import { getAccessiblePair } from "../Calendar/utils/calendarColorsUtils";
|
||||||
import { useI18n } from "twake-i18n";
|
import { useI18n } from "twake-i18n";
|
||||||
import { SnackbarAlert } from "../Loading/SnackBarAlert";
|
import { SnackbarAlert } from "../Loading/SnackBarAlert";
|
||||||
import { PopperProps, PaperProps } from "twake-mui";
|
import { PopperProps, PaperProps } from "@linagora/twake-mui";
|
||||||
|
|
||||||
export interface User {
|
export interface User {
|
||||||
email: string;
|
email: string;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
InputAdornment,
|
InputAdornment,
|
||||||
Backdrop,
|
Backdrop,
|
||||||
CircularProgress,
|
CircularProgress,
|
||||||
} from "twake-mui";
|
} from "@linagora/twake-mui";
|
||||||
import { useState, useEffect } from "react";
|
import { useState, useEffect } from "react";
|
||||||
import {
|
import {
|
||||||
exportCalendar,
|
exportCalendar,
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import { push } from "redux-first-history";
|
|||||||
import EventPreviewModal from "../../features/Events/EventDisplayPreview";
|
import EventPreviewModal from "../../features/Events/EventDisplayPreview";
|
||||||
import AddIcon from "@mui/icons-material/Add";
|
import AddIcon from "@mui/icons-material/Add";
|
||||||
import { TempCalendarsInput } from "./TempCalendarsInput";
|
import { TempCalendarsInput } from "./TempCalendarsInput";
|
||||||
import { Button, Box } from "twake-mui";
|
import { Button, Box, radius } from "@linagora/twake-mui";
|
||||||
import {
|
import {
|
||||||
updateSlotLabelVisibility,
|
updateSlotLabelVisibility,
|
||||||
eventToFullCalendarFormat,
|
eventToFullCalendarFormat,
|
||||||
@@ -35,7 +35,7 @@ import momentTimezonePlugin from "@fullcalendar/moment-timezone";
|
|||||||
import { TimezoneSelector } from "./TimezoneSelector";
|
import { TimezoneSelector } from "./TimezoneSelector";
|
||||||
import { MiniCalendar } from "./MiniCalendar";
|
import { MiniCalendar } from "./MiniCalendar";
|
||||||
import { User } from "../Attendees/PeopleSearch";
|
import { User } from "../Attendees/PeopleSearch";
|
||||||
import { useTheme } from "twake-mui";
|
import { useTheme } from "@linagora/twake-mui";
|
||||||
import { updateDarkColor } from "./utils/calendarColorsUtils";
|
import { updateDarkColor } from "./utils/calendarColorsUtils";
|
||||||
import { useI18n } from "twake-i18n";
|
import { useI18n } from "twake-i18n";
|
||||||
import frLocale from "@fullcalendar/core/locales/fr";
|
import frLocale from "@fullcalendar/core/locales/fr";
|
||||||
@@ -618,6 +618,9 @@ export default function CalendarApp({
|
|||||||
onClick={() =>
|
onClick={() =>
|
||||||
eventHandlers.handleDateSelect(null as unknown as DateSelectArg)
|
eventHandlers.handleDateSelect(null as unknown as DateSelectArg)
|
||||||
}
|
}
|
||||||
|
sx={{
|
||||||
|
borderRadius: radius.lg,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<AddIcon /> <p>{t("event.createEvent")}</p>
|
<AddIcon /> <p>{t("event.createEvent")}</p>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
TextField,
|
TextField,
|
||||||
Typography,
|
Typography,
|
||||||
useTheme,
|
useTheme,
|
||||||
} from "twake-mui";
|
} from "@linagora/twake-mui";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { HexColorPicker } from "react-colorful";
|
import { HexColorPicker } from "react-colorful";
|
||||||
import { useI18n } from "twake-i18n";
|
import { useI18n } from "twake-i18n";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button, Tab, Tabs } from "twake-mui";
|
import { Button, Tab, Tabs } from "@linagora/twake-mui";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { useAppDispatch, useAppSelector } from "../../app/hooks";
|
import { useAppDispatch, useAppSelector } from "../../app/hooks";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
ListItem,
|
ListItem,
|
||||||
Menu,
|
Menu,
|
||||||
MenuItem,
|
MenuItem,
|
||||||
} from "twake-mui";
|
} from "@linagora/twake-mui";
|
||||||
import { useAppDispatch, useAppSelector } from "../../app/hooks";
|
import { useAppDispatch, useAppSelector } from "../../app/hooks";
|
||||||
import AddIcon from "@mui/icons-material/Add";
|
import AddIcon from "@mui/icons-material/Add";
|
||||||
import { useState, useMemo, useEffect } from "react";
|
import { useState, useMemo, useEffect } from "react";
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
ToggleButton,
|
ToggleButton,
|
||||||
ToggleButtonGroup,
|
ToggleButtonGroup,
|
||||||
Typography,
|
Typography,
|
||||||
} from "twake-mui";
|
} from "@linagora/twake-mui";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { useAppSelector } from "../../app/hooks";
|
import { useAppSelector } from "../../app/hooks";
|
||||||
import { CalendarItemList } from "./CalendarItemList";
|
import { CalendarItemList } from "./CalendarItemList";
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
ToggleButton,
|
ToggleButton,
|
||||||
ToggleButtonGroup,
|
ToggleButtonGroup,
|
||||||
Typography,
|
Typography,
|
||||||
} from "twake-mui";
|
} from "@linagora/twake-mui";
|
||||||
import { useI18n } from "twake-i18n";
|
import { useI18n } from "twake-i18n";
|
||||||
import { useState, useEffect } from "react";
|
import { useState, useEffect } from "react";
|
||||||
import { useAppSelector } from "../../app/hooks";
|
import { useAppSelector } from "../../app/hooks";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { useTheme } from "twake-mui";
|
import { useTheme } from "@linagora/twake-mui";
|
||||||
import { useRef } from "react";
|
import { useRef } from "react";
|
||||||
import { useI18n } from "twake-i18n";
|
import { useI18n } from "twake-i18n";
|
||||||
import { useAppDispatch, useAppSelector } from "../../app/hooks";
|
import { useAppDispatch, useAppSelector } from "../../app/hooks";
|
||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
} from "../../features/Calendars/CalendarSlice";
|
} from "../../features/Calendars/CalendarSlice";
|
||||||
import { Calendar } from "../../features/Calendars/CalendarTypes";
|
import { Calendar } from "../../features/Calendars/CalendarTypes";
|
||||||
import { setView } from "../../features/Settings/SettingsSlice";
|
import { setView } from "../../features/Settings/SettingsSlice";
|
||||||
import { TextField } from "twake-mui";
|
import { TextField } from "@linagora/twake-mui";
|
||||||
import { User, PeopleSearch } from "../Attendees/PeopleSearch";
|
import { User, PeopleSearch } from "../Attendees/PeopleSearch";
|
||||||
import { getAccessiblePair } from "./utils/calendarColorsUtils";
|
import { getAccessiblePair } from "./utils/calendarColorsUtils";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button, Popover } from "twake-mui";
|
import { Button, Popover } from "@linagora/twake-mui";
|
||||||
import { useI18n } from "twake-i18n";
|
import { useI18n } from "twake-i18n";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import { MouseEvent, useMemo, useState } from "react";
|
import { MouseEvent, useMemo, useState } from "react";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { darken, getContrastRatio, lighten, Theme } from "twake-mui";
|
import { darken, getContrastRatio, lighten, Theme } from "@linagora/twake-mui";
|
||||||
import { ThunkDispatch } from "@reduxjs/toolkit";
|
import { ThunkDispatch } from "@reduxjs/toolkit";
|
||||||
import { updateCalColor } from "../../../features/Calendars/CalendarSlice";
|
import { updateCalColor } from "../../../features/Calendars/CalendarSlice";
|
||||||
import { Calendar } from "../../../features/Calendars/CalendarTypes";
|
import { Calendar } from "../../../features/Calendars/CalendarTypes";
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
SxProps,
|
SxProps,
|
||||||
Theme,
|
Theme,
|
||||||
Box,
|
Box,
|
||||||
} from "twake-mui";
|
} from "@linagora/twake-mui";
|
||||||
import ArrowBackIcon from "@mui/icons-material/ArrowBack";
|
import ArrowBackIcon from "@mui/icons-material/ArrowBack";
|
||||||
import CloseIcon from "@mui/icons-material/Close";
|
import CloseIcon from "@mui/icons-material/Close";
|
||||||
import OpenInFullIcon from "@mui/icons-material/OpenInFull";
|
import OpenInFullIcon from "@mui/icons-material/OpenInFull";
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
|
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
|
||||||
import ReplayIcon from "@mui/icons-material/Replay";
|
import ReplayIcon from "@mui/icons-material/Replay";
|
||||||
import { Box, Button, Fade, Paper, Stack, Typography } from "twake-mui";
|
import {
|
||||||
|
Box,
|
||||||
|
Button,
|
||||||
|
Fade,
|
||||||
|
Paper,
|
||||||
|
Stack,
|
||||||
|
Typography,
|
||||||
|
} from "@linagora/twake-mui";
|
||||||
import { useEffect, useRef } from "react";
|
import { useEffect, useRef } from "react";
|
||||||
import { push } from "redux-first-history";
|
import { push } from "redux-first-history";
|
||||||
import { useAppDispatch, useAppSelector } from "../../app/hooks";
|
import { useAppDispatch, useAppSelector } from "../../app/hooks";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Snackbar, Alert, Button } from "twake-mui";
|
import { Snackbar, Alert, Button } from "@linagora/twake-mui";
|
||||||
import { useAppDispatch } from "../../app/hooks";
|
import { useAppDispatch } from "../../app/hooks";
|
||||||
import { clearError as calendarClearError } from "../../features/Calendars/CalendarSlice";
|
import { clearError as calendarClearError } from "../../features/Calendars/CalendarSlice";
|
||||||
import { clearError as userClearError } from "../../features/User/userSlice";
|
import { clearError as userClearError } from "../../features/User/userSlice";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Box, Button, TextField } from "twake-mui";
|
import { Box, Button, TextField } from "@linagora/twake-mui";
|
||||||
import { useI18n } from "twake-i18n";
|
import { useI18n } from "twake-i18n";
|
||||||
import { FieldWithLabel } from "./components/FieldWithLabel";
|
import { FieldWithLabel } from "./components/FieldWithLabel";
|
||||||
import { Description as DescriptionIcon } from "@mui/icons-material";
|
import { Description as DescriptionIcon } from "@mui/icons-material";
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
FormControlLabel,
|
FormControlLabel,
|
||||||
Radio,
|
Radio,
|
||||||
RadioGroup,
|
RadioGroup,
|
||||||
} from "twake-mui";
|
} from "@linagora/twake-mui";
|
||||||
import { CalendarEvent } from "../../features/Events/EventsTypes";
|
import { CalendarEvent } from "../../features/Events/EventsTypes";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { useI18n } from "twake-i18n";
|
import { useI18n } from "twake-i18n";
|
||||||
@@ -40,6 +40,7 @@ export function EditModeDialog({
|
|||||||
<Dialog open={Boolean(type)} onClose={handleClose}>
|
<Dialog open={Boolean(type)} onClose={handleClose}>
|
||||||
<DialogTitle>
|
<DialogTitle>
|
||||||
{type === "edit" && t("editModeDialog.updateRecurrentEvent")}
|
{type === "edit" && t("editModeDialog.updateRecurrentEvent")}
|
||||||
|
{type === "delete" && t("editModeDialog.deleteRecurrentEvent")}
|
||||||
{type === "attendance" && t("editModeDialog.updateParticipationStatus")}
|
{type === "attendance" && t("editModeDialog.updateParticipationStatus")}
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Card, Typography } from "twake-mui";
|
import { Card, Typography } from "@linagora/twake-mui";
|
||||||
import { useRef, useEffect } from "react";
|
import { useRef, useEffect } from "react";
|
||||||
import { EventErrorHandler } from "../../Error/EventErrorHandler";
|
import { EventErrorHandler } from "../../Error/EventErrorHandler";
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
CardContent,
|
CardContent,
|
||||||
CardHeader,
|
CardHeader,
|
||||||
Typography,
|
Typography,
|
||||||
} from "twake-mui";
|
} from "@linagora/twake-mui";
|
||||||
import React, { useEffect, useRef, useState } from "react";
|
import React, { useEffect, useRef, useState } from "react";
|
||||||
import { stringAvatar } from "../utils/eventUtils";
|
import { stringAvatar } from "../utils/eventUtils";
|
||||||
import { ErrorEventChip } from "./ErrorEventChip";
|
import { ErrorEventChip } from "./ErrorEventChip";
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import CancelIcon from "@mui/icons-material/Cancel";
|
import CancelIcon from "@mui/icons-material/Cancel";
|
||||||
import HelpOutlineIcon from "@mui/icons-material/HelpOutline";
|
import HelpOutlineIcon from "@mui/icons-material/HelpOutline";
|
||||||
import LockOutlineIcon from "@mui/icons-material/LockOutline";
|
import LockOutlineIcon from "@mui/icons-material/LockOutline";
|
||||||
import { Box, getContrastRatio } from "twake-mui";
|
import { Box, getContrastRatio } from "@linagora/twake-mui";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import React, { useLayoutEffect, useState } from "react";
|
import React, { useLayoutEffect, useState } from "react";
|
||||||
import { Calendar } from "../../../features/Calendars/CalendarTypes";
|
import { Calendar } from "../../../features/Calendars/CalendarTypes";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { Card, Typography } from "twake-mui";
|
import { Card, Typography } from "@linagora/twake-mui";
|
||||||
|
|
||||||
export function SimpleEventChip({ title }: { title: string }) {
|
export function SimpleEventChip({ title }: { title: string }) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { MenuItem } from "twake-mui";
|
import { MenuItem } from "@linagora/twake-mui";
|
||||||
import { CalendarEvent } from "../../features/Events/EventsTypes";
|
import { CalendarEvent } from "../../features/Events/EventsTypes";
|
||||||
import { useI18n } from "twake-i18n";
|
import { useI18n } from "twake-i18n";
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import {
|
|||||||
TextField,
|
TextField,
|
||||||
ToggleButtonGroup,
|
ToggleButtonGroup,
|
||||||
ToggleButton,
|
ToggleButton,
|
||||||
} from "twake-mui";
|
} from "@linagora/twake-mui";
|
||||||
import {
|
import {
|
||||||
Description as DescriptionIcon,
|
Description as DescriptionIcon,
|
||||||
Public as PublicIcon,
|
Public as PublicIcon,
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import {
|
|||||||
FormGroup,
|
FormGroup,
|
||||||
Radio,
|
Radio,
|
||||||
RadioGroup,
|
RadioGroup,
|
||||||
} from "twake-mui";
|
} from "@linagora/twake-mui";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { RepetitionObject } from "../../features/Events/EventsTypes";
|
import { RepetitionObject } from "../../features/Events/EventsTypes";
|
||||||
import { useI18n } from "twake-i18n";
|
import { useI18n } from "twake-i18n";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { Box, Typography, Link } from "twake-mui";
|
import { Box, Typography, Link } from "@linagora/twake-mui";
|
||||||
|
|
||||||
type InfoRowProps = {
|
type InfoRowProps = {
|
||||||
icon: React.ReactNode;
|
icon: React.ReactNode;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React, { useMemo } from "react";
|
import React, { useMemo } from "react";
|
||||||
import { Box, Typography } from "twake-mui";
|
import { Box, Typography } from "@linagora/twake-mui";
|
||||||
import { TextFieldProps } from "twake-mui";
|
import { TextFieldProps } from "@linagora/twake-mui";
|
||||||
import { DatePicker } from "@mui/x-date-pickers/DatePicker";
|
import { DatePicker } from "@mui/x-date-pickers/DatePicker";
|
||||||
import { DatePickerFieldProps } from "@mui/x-date-pickers/DatePicker";
|
import { DatePickerFieldProps } from "@mui/x-date-pickers/DatePicker";
|
||||||
import { TimePicker } from "@mui/x-date-pickers/TimePicker";
|
import { TimePicker } from "@mui/x-date-pickers/TimePicker";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React, { useState, useRef, useEffect, useCallback } from "react";
|
import React, { useState, useRef, useEffect, useCallback } from "react";
|
||||||
import { TextField } from "twake-mui";
|
import { TextField } from "@linagora/twake-mui";
|
||||||
import {
|
import {
|
||||||
PickerFieldAdapter,
|
PickerFieldAdapter,
|
||||||
PickerValidationScope,
|
PickerValidationScope,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { Box, Typography } from "twake-mui";
|
import { Box, Typography } from "@linagora/twake-mui";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper component for field with label
|
* Helper component for field with label
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { TextField } from "twake-mui";
|
import { TextField } from "@linagora/twake-mui";
|
||||||
import {
|
import {
|
||||||
PickerFieldAdapter,
|
PickerFieldAdapter,
|
||||||
PickerValidationScope,
|
PickerValidationScope,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import CancelIcon from "@mui/icons-material/Cancel";
|
import CancelIcon from "@mui/icons-material/Cancel";
|
||||||
import CheckCircleIcon from "@mui/icons-material/CheckCircle";
|
import CheckCircleIcon from "@mui/icons-material/CheckCircle";
|
||||||
import { Avatar, Badge, Box, Typography } from "twake-mui";
|
import { Avatar, Badge, Box, Typography } from "@linagora/twake-mui";
|
||||||
import { ThunkDispatch } from "@reduxjs/toolkit";
|
import { ThunkDispatch } from "@reduxjs/toolkit";
|
||||||
import {
|
import {
|
||||||
emptyEventsCal,
|
emptyEventsCal,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Alert, Snackbar } from "twake-mui";
|
import { Alert, Snackbar } from "@linagora/twake-mui";
|
||||||
import type { AlertColor } from "twake-mui";
|
import type { AlertColor } from "@linagora/twake-mui";
|
||||||
|
|
||||||
export function SnackbarAlert({
|
export function SnackbarAlert({
|
||||||
open,
|
open,
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ import {
|
|||||||
Stack,
|
Stack,
|
||||||
TextField,
|
TextField,
|
||||||
Typography,
|
Typography,
|
||||||
} from "twake-mui";
|
} from "@linagora/twake-mui";
|
||||||
import { type AutocompleteRenderInputParams } from "twake-mui";
|
import { type AutocompleteRenderInputParams } from "@linagora/twake-mui";
|
||||||
import { useRef, useState, useEffect } from "react";
|
import { useRef, useState, useEffect } from "react";
|
||||||
import HighlightOffIcon from "@mui/icons-material/HighlightOff";
|
import HighlightOffIcon from "@mui/icons-material/HighlightOff";
|
||||||
import SearchIcon from "@mui/icons-material/Search";
|
import SearchIcon from "@mui/icons-material/Search";
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import {
|
|||||||
Typography,
|
Typography,
|
||||||
Box,
|
Box,
|
||||||
Divider,
|
Divider,
|
||||||
} from "twake-mui";
|
} from "@linagora/twake-mui";
|
||||||
import { push } from "redux-first-history";
|
import { push } from "redux-first-history";
|
||||||
import { CalendarApi } from "@fullcalendar/core";
|
import { CalendarApi } from "@fullcalendar/core";
|
||||||
import { useI18n } from "twake-i18n";
|
import { useI18n } from "twake-i18n";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Autocomplete, TextField } from "twake-mui";
|
import { Autocomplete, TextField } from "@linagora/twake-mui";
|
||||||
import { PublicOutlined as TimezoneIcon } from "@mui/icons-material";
|
import { PublicOutlined as TimezoneIcon } from "@mui/icons-material";
|
||||||
import { useMemo } from "react";
|
import { useMemo } from "react";
|
||||||
|
|
||||||
|
|||||||
@@ -381,6 +381,7 @@ export default function EventPreviewModal({
|
|||||||
onOpenDuplicate={() => {
|
onOpenDuplicate={() => {
|
||||||
setToggleActionMenu(null);
|
setToggleActionMenu(null);
|
||||||
setHidePreview(true);
|
setHidePreview(true);
|
||||||
|
<<<<<<< HEAD
|
||||||
setOpenDuplicateModal(true);
|
setOpenDuplicateModal(true);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
@@ -625,6 +626,7 @@ export default function EventPreviewModal({
|
|||||||
}
|
}
|
||||||
text={t("eventPreview.alarmText", {
|
text={t("eventPreview.alarmText", {
|
||||||
trigger: t(`event.form.notifications.${event.alarm.trigger}`),
|
trigger: t(`event.form.notifications.${event.alarm.trigger}`),
|
||||||
|
<<<<<<< HEAD
|
||||||
action: (() => {
|
action: (() => {
|
||||||
if (!event.alarm.action) return "";
|
if (!event.alarm.action) return "";
|
||||||
const translationKey = `event.form.notifications.${event.alarm.action}`;
|
const translationKey = `event.form.notifications.${event.alarm.action}`;
|
||||||
@@ -634,6 +636,9 @@ export default function EventPreviewModal({
|
|||||||
? event.alarm.action
|
? event.alarm.action
|
||||||
: translated;
|
: translated;
|
||||||
})(),
|
})(),
|
||||||
|
=======
|
||||||
|
action: event.alarm.action || "",
|
||||||
|
>>>>>>> 4ddc44d (chore: update twake-mui dependency and use radius.lg for create event button)
|
||||||
})}
|
})}
|
||||||
style={{
|
style={{
|
||||||
fontSize: "16px",
|
fontSize: "16px",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { CalendarApi, DateSelectArg } from "@fullcalendar/core";
|
import { CalendarApi, DateSelectArg } from "@fullcalendar/core";
|
||||||
import { Box, Button } from "twake-mui";
|
import { Box, Button } from "@linagora/twake-mui";
|
||||||
import AddIcon from "@mui/icons-material/Add";
|
import AddIcon from "@mui/icons-material/Add";
|
||||||
import React, {
|
import React, {
|
||||||
useEffect,
|
useEffect,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Box, Button } from "twake-mui";
|
import { Box, Button } from "@linagora/twake-mui";
|
||||||
import AddIcon from "@mui/icons-material/Add";
|
import AddIcon from "@mui/icons-material/Add";
|
||||||
import { useEffect, useState, useMemo, useCallback, useRef } from "react";
|
import { useEffect, useState, useMemo, useCallback, useRef } from "react";
|
||||||
import { useAppDispatch, useAppSelector } from "../../app/hooks";
|
import { useAppDispatch, useAppSelector } from "../../app/hooks";
|
||||||
|
|||||||
@@ -2,7 +2,14 @@ import ArrowBackIcon from "@mui/icons-material/ArrowBack";
|
|||||||
import RepeatIcon from "@mui/icons-material/Repeat";
|
import RepeatIcon from "@mui/icons-material/Repeat";
|
||||||
import SquareRoundedIcon from "@mui/icons-material/SquareRounded";
|
import SquareRoundedIcon from "@mui/icons-material/SquareRounded";
|
||||||
import VideocamIcon from "@mui/icons-material/Videocam";
|
import VideocamIcon from "@mui/icons-material/Videocam";
|
||||||
import { Box, Button, IconButton, Stack, Typography, CircularProgress } from "twake-mui";
|
import {
|
||||||
|
Box,
|
||||||
|
Button,
|
||||||
|
IconButton,
|
||||||
|
Stack,
|
||||||
|
Typography,
|
||||||
|
CircularProgress,
|
||||||
|
} from "@linagora/twake-mui";
|
||||||
import { useI18n } from "twake-i18n";
|
import { useI18n } from "twake-i18n";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { useAppDispatch, useAppSelector } from "../../app/hooks";
|
import { useAppDispatch, useAppSelector } from "../../app/hooks";
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import {
|
|||||||
Snackbar,
|
Snackbar,
|
||||||
Switch,
|
Switch,
|
||||||
FormControlLabel,
|
FormControlLabel,
|
||||||
} from "twake-mui";
|
} from "@linagora/twake-mui";
|
||||||
import ArrowBackIcon from "@mui/icons-material/ArrowBack";
|
import ArrowBackIcon from "@mui/icons-material/ArrowBack";
|
||||||
import SettingsIcon from "@mui/icons-material/Settings";
|
import SettingsIcon from "@mui/icons-material/Settings";
|
||||||
// import SyncIcon from "@mui/icons-material/Sync";
|
// import SyncIcon from "@mui/icons-material/Sync";
|
||||||
|
|||||||
@@ -188,6 +188,7 @@
|
|||||||
"editModeDialog": {
|
"editModeDialog": {
|
||||||
"updateRecurrentEvent": "Update the recurrent event",
|
"updateRecurrentEvent": "Update the recurrent event",
|
||||||
"updateParticipationStatus": "Update the participation status",
|
"updateParticipationStatus": "Update the participation status",
|
||||||
|
"deleteRecurrentEvent": "Delete the recurrent event",
|
||||||
"thisEvent": "This event",
|
"thisEvent": "This event",
|
||||||
"allEvents": "All the events"
|
"allEvents": "All the events"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user