Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import { Box, Typography, IconButton, Link } from "@mui/material";
import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp";
import { Trans, useTranslation } from "react-i18next";
import { Box, Typography, Link } from "@mui/material";
import { Trans } from "react-i18next";
import { useMaintenanceEndingBannerContext } from "./MaintenanceEndingBannerContext";

export const MaintenanceEndingBanner = () => {
const { ref, isExpanded, toggleExpanded } =
const { ref, isExpanded } =
useMaintenanceEndingBannerContext();
const { t } = useTranslation();

return (
<Box
Expand All @@ -22,42 +19,6 @@ export const MaintenanceEndingBanner = () => {
zIndex: 1200,
}}
>
{/* Banner Header */}
<Box
sx={{
px: 2,
py: 1,
textAlign: "left",
display: "flex",
justifyContent: "space-between",
alignItems: "center",
}}
>
<Box sx={{ display: "flex", alignItems: "center" }}>
<Typography
variant="body2"
fontWeight={600}
color="common.white"
sx={{ display: "flex", alignItems: "center" }}
>
{t("system.maintenanceEnding.title")}
</Typography>
</Box>
<Box sx={{ display: "flex" }}>
<IconButton
onClick={toggleExpanded}
size="small"
data-testid="toggle-maintenance-banner"
sx={{
color: "white",
transition: "transform 0.3s ease",
}}
>
{isExpanded ? <KeyboardArrowUpIcon /> : <KeyboardArrowDownIcon />}
</IconButton>
</Box>
</Box>

{/* Expandable Content */}
<Box
sx={{
Expand Down