Fix pages not rendering

This commit is contained in:
Dane Everitt 2020-08-23 15:55:10 -07:00
parent 5173f1f7e8
commit 89b18cbcac
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -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>
); );
} }