Update TimelineComponent and CacheSettingsComponent

master
Tudor Stanciu 2024-04-01 00:30:18 +03:00
parent 5f2f701611
commit 76b2bf64f3
2 changed files with 2 additions and 10 deletions

View File

@ -65,7 +65,7 @@ const TimelineComponent = ({ releases }) => {
}); });
return ( return (
<Timeline align="alternate"> <Timeline position="alternate">
{_releases.map(release => ( {_releases.map(release => (
<TimelineItem key={release.version}> <TimelineItem key={release.version}>
<TimelineOppositeContent> <TimelineOppositeContent>

View File

@ -5,14 +5,6 @@ import { useTranslation } from "react-i18next";
import { PaperTitle } from "components/common"; import { PaperTitle } from "components/common";
import { usePermissions } from "hooks"; import { usePermissions } from "hooks";
const styles = {
content: {
"& > *": {
margin: 1
}
}
};
const CacheSettingsComponent = ({ onResetCache }) => { const CacheSettingsComponent = ({ onResetCache }) => {
const { t } = useTranslation(); const { t } = useTranslation();
const { sysAdmin } = usePermissions(); const { sysAdmin } = usePermissions();
@ -20,7 +12,7 @@ const CacheSettingsComponent = ({ onResetCache }) => {
return ( return (
<Paper variant="outlined"> <Paper variant="outlined">
<PaperTitle text={t("Settings.Cache.Title")} /> <PaperTitle text={t("Settings.Cache.Title")} />
<Box sx={styles.content}> <Box sx={{ margin: 1 }}>
<Button variant="outlined" color="secondary" disabled={!sysAdmin} onClick={onResetCache}> <Button variant="outlined" color="secondary" disabled={!sysAdmin} onClick={onResetCache}>
{t("Settings.Cache.Reset")} {t("Settings.Cache.Reset")}
</Button> </Button>