Skip to content

Commit 98ac049

Browse files
authored
Fix colors for plugin table in admin page (#953)
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
1 parent 5c281d7 commit 98ac049

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

pages/admin.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,19 +188,17 @@ function LeaguePlugin({ data, store, version }: LeaguePluginProps) {
188188
compareSemanticVersions(store.min_version, version) === -1
189189
) {
190190
installedText = (
191-
<Typography color="warning.main">
191+
<Typography color="warning">
192192
Installed but unsupported(Update Fantasy Manger to Update)
193193
</Typography>
194194
);
195195
} else {
196196
installedText = (
197-
<Typography color="warning.main">
198-
Installed but out of Date
199-
</Typography>
197+
<Typography color="warning">Installed but out of Date</Typography>
200198
);
201199
}
202200
} else {
203-
installedText = <Typography color="success.main">Installed</Typography>;
201+
installedText = <Typography color="success">Installed</Typography>;
204202
}
205203
} else {
206204
if (store === "error") {
@@ -214,7 +212,7 @@ function LeaguePlugin({ data, store, version }: LeaguePluginProps) {
214212
compareSemanticVersions(store.min_version, version) === -1
215213
) {
216214
installedText = (
217-
<Typography color="warning.main">
215+
<Typography color="warning">
218216
Unsupported (Update Fantasy Manger to Install)
219217
</Typography>
220218
);
@@ -238,7 +236,7 @@ function LeaguePlugin({ data, store, version }: LeaguePluginProps) {
238236
<TableCell>{data.url}</TableCell>
239237
<TableCell>
240238
{enabled ? (
241-
<Typography color="success.main">Enabled</Typography>
239+
<Typography color="success">Enabled</Typography>
242240
) : (
243241
<Typography color="error">Disabled</Typography>
244242
)}

0 commit comments

Comments
 (0)