refactor: rewrite useAutomatischInfo with RQ and REST API

This commit is contained in:
Ali BARIN
2024-02-29 17:59:45 +00:00
parent 83815d3caa
commit 14c04ee4ac
8 changed files with 71 additions and 28 deletions

View File

@@ -29,7 +29,8 @@ function createDrawerLinks({ isCloud }) {
return items;
}
export default function SettingsLayout({ children }) {
const { isCloud } = useAutomatischInfo();
const { data: automatischInfo } = useAutomatischInfo();
const isCloud = automatischInfo?.data.isCloud;
const theme = useTheme();
const formatMessage = useFormatMessage();
const matchSmallScreens = useMediaQuery(theme.breakpoints.down('lg'));