chore: App router migration - /attributes, /privacy, /dsync, /license-key under /settings route group (#16406)
* migrate license-key/new * migrate settings/org/dsync * migrate settings/org/privacy * migrate org attributes * remove res in getServerSideProps * Fix SettingsLayoutAppDir * fix attributes pages * fix * fix
This commit is contained in:
1 parent
706d7dff42
commit
5dff1c6df0
21 files changed
+225
-65
No files matched your search
@@ -648,14 +648,12 @@ const MobileSettingsContainer = (props: { onSideContainerOpen?: () => void }) =>
|
||||
);
|
||||
};
|
||||
|
||||
export default function SettingsLayout({
|
||||
children,
|
||||
hideHeader,
|
||||
...rest
|
||||
}: {
|
||||
export type SettingsLayoutProps = {
|
||||
children: React.ReactNode;
|
||||
hideHeader?: boolean;
|
||||
} & ComponentProps<typeof Shell>) {
|
||||
} & ComponentProps<typeof Shell>;
|
||||
|
||||
export default function SettingsLayout({ children, hideHeader, ...rest }: SettingsLayoutProps) {
|
||||
const pathname = usePathname();
|
||||
const state = useState(false);
|
||||
const { t } = useLocale();
|
||||
|
||||
Reference in new issue
Block a user