This commit is contained in:
@@ -3970,35 +3970,14 @@ export function DashboardShell({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CardContent sx={{ px: { xs: 2.5, md: 3 }, py: { xs: 2.5, md: 2.75 }, position: "relative" }}>
|
<CardContent sx={{ px: { xs: 2.5, md: 3 }, py: { xs: 2.5, md: 2.75 }, position: "relative" }}>
|
||||||
{viewer.role === "ORGA" ? (
|
|
||||||
<IconButton
|
|
||||||
aria-label="Zuständigkeiten und Benachrichtigungen"
|
|
||||||
sx={{
|
|
||||||
position: "absolute",
|
|
||||||
top: { xs: 14, md: 16 },
|
|
||||||
right: { xs: 14, md: 18 },
|
|
||||||
width: 38,
|
|
||||||
height: 38,
|
|
||||||
border: `1px solid ${alpha("#FFFFFF", 0.28)}`,
|
|
||||||
color: "white",
|
|
||||||
bgcolor: alpha("#FFFFFF", 0.08),
|
|
||||||
"&:hover": {
|
|
||||||
bgcolor: alpha("#FFFFFF", 0.16)
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
onClick={() => setIsOrgaSettingsOpen(true)}
|
|
||||||
>
|
|
||||||
<SettingsRoundedIcon />
|
|
||||||
</IconButton>
|
|
||||||
) : null}
|
|
||||||
<Stack spacing={1.6}>
|
<Stack spacing={1.6}>
|
||||||
<Stack
|
<Stack
|
||||||
direction={{ xs: "column", md: "row" }}
|
direction={{ xs: "column", md: "row" }}
|
||||||
justifyContent="space-between"
|
justifyContent="space-between"
|
||||||
alignItems={{ xs: "flex-start", md: "center" }}
|
alignItems={{ xs: "flex-start", md: "flex-start" }}
|
||||||
gap={1.5}
|
gap={1.5}
|
||||||
>
|
>
|
||||||
<Box sx={{ maxWidth: 760, pr: viewer.role === "ORGA" ? { xs: 6, md: 0 } : 0 }}>
|
<Box sx={{ maxWidth: 760 }}>
|
||||||
<Typography
|
<Typography
|
||||||
variant="h1"
|
variant="h1"
|
||||||
sx={{
|
sx={{
|
||||||
@@ -4017,7 +3996,25 @@ export function DashboardShell({
|
|||||||
{`Aktuelle \u00dcbersicht: ${currentPeriod?.name ?? "Zeitraum fehlt"}.`}
|
{`Aktuelle \u00dcbersicht: ${currentPeriod?.name ?? "Zeitraum fehlt"}.`}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Stack direction={{ xs: "column", sm: "row" }} gap={0.8} alignItems={{ sm: "center" }}>
|
<Stack direction={{ xs: "row", sm: "row" }} gap={0.8} alignItems="center" useFlexGap flexWrap="wrap" justifyContent={{ md: "flex-end" }}>
|
||||||
|
{viewer.role === "ORGA" ? (
|
||||||
|
<IconButton
|
||||||
|
aria-label="Zuständigkeiten und Benachrichtigungen"
|
||||||
|
sx={{
|
||||||
|
width: 38,
|
||||||
|
height: 38,
|
||||||
|
border: `1px solid ${alpha("#FFFFFF", 0.28)}`,
|
||||||
|
color: "white",
|
||||||
|
bgcolor: alpha("#FFFFFF", 0.08),
|
||||||
|
"&:hover": {
|
||||||
|
bgcolor: alpha("#FFFFFF", 0.16)
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
onClick={() => setIsOrgaSettingsOpen(true)}
|
||||||
|
>
|
||||||
|
<SettingsRoundedIcon />
|
||||||
|
</IconButton>
|
||||||
|
) : null}
|
||||||
{viewer.approvalPermissions.length > 0 ? (
|
{viewer.approvalPermissions.length > 0 ? (
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
Reference in New Issue
Block a user