mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-23 01:22:30 +01:00
Fix pages not rendering
This commit is contained in:
parent
5173f1f7e8
commit
89b18cbcac
@ -1,6 +1,5 @@
|
||||
import React from 'react';
|
||||
import Can from '@/components/elements/Can';
|
||||
import NotFound from '@/components/screens/NotFound';
|
||||
import ScreenBlock from '@/components/screens/ScreenBlock';
|
||||
|
||||
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>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user