Skip to content

Commit 610805b

Browse files
committed
Added text to the guild card indicating whether or not it is inactive.
1 parent 6fc5e63 commit 610805b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

web-ui/src/components/guild-results/GuildSummaryCard.jsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ import {
2020
DialogContent,
2121
DialogActions,
2222
Link as StyledLink,
23-
Tooltip
23+
Tooltip,
24+
Typography,
2425
} from '@mui/material';
2526
import PropTypes from 'prop-types';
2627
import { updateGuild } from '../../api/guild.js';
@@ -54,6 +55,11 @@ const StyledCard = styled(Card)(() => ({
5455
}
5556
}));
5657

58+
const inactiveStyle = {
59+
'color': 'var(--action-disabled)',
60+
'font-size': '0.75em',
61+
};
62+
5763
const propTypes = {
5864
guild: PropTypes.shape({
5965
id: PropTypes.string,
@@ -139,6 +145,14 @@ const GuildSummaryCard = ({ guild, index, isOpen, onGuildSelect }) => {
139145
}
140146
/>
141147
<CardContent>
148+
{!guild.active && (
149+
<Typography sx={{ position: 'absolute', top: 10, right: 10,
150+
...inactiveStyle,
151+
}}
152+
>
153+
Inactive
154+
</Typography>
155+
)}
142156
{guild?.link ? (
143157
<React.Fragment>
144158
<div>

0 commit comments

Comments
 (0)