chore: remove react code in getLayout (#16997)
* chore: no need to pass title, description in getLayout * acutally, we do
This commit is contained in:
@@ -344,7 +344,7 @@ export default function RoutingForms({
|
||||
);
|
||||
}
|
||||
|
||||
RoutingForms.getLayout = (page: React.ReactElement) => {
|
||||
const ShellContainer = ({ page }: { page: React.ReactElement }) => {
|
||||
const { t } = useLocale();
|
||||
|
||||
return (
|
||||
@@ -358,4 +358,8 @@ RoutingForms.getLayout = (page: React.ReactElement) => {
|
||||
);
|
||||
};
|
||||
|
||||
RoutingForms.getLayout = (page: React.ReactElement) => {
|
||||
return <ShellContainer page={page} />;
|
||||
};
|
||||
|
||||
export { getServerSideProps };
|
||||
|
||||
Reference in New Issue
Block a user