From 37c404170ad009c41e2e6dd2b9139822aaee89e7 Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 28 Apr 2024 13:33:18 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Add=20hint=20when=20ticker=20is?= =?UTF-8?q?=20disabled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ticker/Ticker.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/ticker/Ticker.tsx b/src/components/ticker/Ticker.tsx index 8765583..70d4c94 100644 --- a/src/components/ticker/Ticker.tsx +++ b/src/components/ticker/Ticker.tsx @@ -5,7 +5,7 @@ import TickerCard from './TickerCard' import MessageList from '../message/MessageList' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faGear } from '@fortawesome/free-solid-svg-icons' -import { Box, Button, Card, CardContent, Grid, Stack, Typography } from '@mui/material' +import { Alert, Box, Button, Card, CardContent, Grid, Stack, Typography } from '@mui/material' import TickerModalForm from './TickerModalForm' import TickerDangerZoneCard from './TickerDangerZoneCard' import TickerUsersCard from './TickerUsersCard' @@ -44,6 +44,11 @@ const Ticker: FC = ({ ticker }) => { /> + {!ticker.active ? ( + + This ticker is currently disabled. + + ) : null} {user?.roles.includes('admin') ? (