mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
checkpoint
This commit is contained in:
parent
db1ae3f2c7
commit
9e8748e2f3
14 changed files with 24 additions and 101 deletions
|
|
@ -1,11 +1,3 @@
|
|||
import Index from './index';
|
||||
|
||||
export default Index;
|
||||
|
||||
export async function getServerSideProps() {
|
||||
return {
|
||||
props: {
|
||||
settingsDisabled: !!process.env.CLOUD_MODE,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,26 +3,16 @@ import Layout from 'components/layout/Layout';
|
|||
import Settings from 'components/pages/Settings';
|
||||
import useRequireLogin from 'hooks/useRequireLogin';
|
||||
|
||||
export default function SettingsPage({ settingsDisabled }) {
|
||||
export default function SettingsPage() {
|
||||
const { loading } = useRequireLogin();
|
||||
|
||||
if (settingsDisabled || loading) {
|
||||
if (process.env.isCloudMode || loading) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Layout settingsDisabled={settingsDisabled}>
|
||||
TEST TEST TEST
|
||||
{settingsDisabled}
|
||||
<Layout>
|
||||
<Settings />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getServerSideProps() {
|
||||
return {
|
||||
props: {
|
||||
settingsDisabled: !!process.env.CLOUD_MODE,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,3 @@
|
|||
import Index from './index';
|
||||
|
||||
export default Index;
|
||||
|
||||
export async function getServerSideProps() {
|
||||
return {
|
||||
props: {
|
||||
settingsDisabled: !!process.env.CLOUD_MODE,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue