Update TimelineComponent and CacheSettingsComponent

master^2
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 (
<Timeline align="alternate">
<Timeline position="alternate">
{_releases.map(release => (
<TimelineItem key={release.version}>
<TimelineOppositeContent>

View File

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