mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Fix pages not rendering
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Can from '@/components/elements/Can';
|
import Can from '@/components/elements/Can';
|
||||||
import NotFound from '@/components/screens/NotFound';
|
|
||||||
import ScreenBlock from '@/components/screens/ScreenBlock';
|
import ScreenBlock from '@/components/screens/ScreenBlock';
|
||||||
|
|
||||||
const requireServerPermission = (Component: React.ComponentType<any>, permissions: string | string[]) => {
|
const requireServerPermission = (Component: React.ComponentType<any>, permissions: string | string[]) => {
|
||||||
@@ -17,7 +16,7 @@ const requireServerPermission = (Component: React.ComponentType<any>, permission
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Component/>
|
<Component {...this.props}/>
|
||||||
</Can>
|
</Can>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user