Update TimelineComponent and CacheSettingsComponent
parent
5f2f701611
commit
76b2bf64f3
|
@ -65,7 +65,7 @@ const TimelineComponent = ({ releases }) => {
|
|||
});
|
||||
|
||||
return (
|
||||
<Timeline align="alternate">
|
||||
<Timeline position="alternate">
|
||||
{_releases.map(release => (
|
||||
<TimelineItem key={release.version}>
|
||||
<TimelineOppositeContent>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue