Skip to content

Commit

Permalink
Merge pull request #620 from systemli/Add-hint-when-ticker-is-disabled
Browse files Browse the repository at this point in the history
πŸ’„ Add hint when ticker is disabled
  • Loading branch information
0x46616c6b authored Apr 28, 2024
2 parents a11c13b + 37c4041 commit 32f9908
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/ticker/Ticker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -44,6 +44,11 @@ const Ticker: FC<Props> = ({ ticker }) => {
/>
</Stack>
</Grid>
{!ticker.active ? (
<Grid item xs={12}>
<Alert severity="warning">This ticker is currently disabled.</Alert>
</Grid>
) : null}
<Grid display={{ xs: 'none', md: 'block' }} item md={4} spacing={2} xs={12}>
<TickerCard ticker={ticker} />
{user?.roles.includes('admin') ? (
Expand Down

0 comments on commit 32f9908

Please sign in to comment.