remove FC usage

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2023-01-05 13:20:55 +01:00
parent 7b4f82fe06
commit 11cd510220
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import React, { FC } from 'react';
import React from 'react';
import { render } from '@testing-library/react';
import { usePermission } from './usePermission';
import {
@@ -30,7 +30,7 @@ const permission = createPermission({
attributes: { action: 'read' },
});
const TestComponent: FC = () => {
const TestComponent = () => {
const { loading, allowed, error } = usePermission({ permission });
return (
<div>
@@ -47,7 +47,6 @@ function renderComponent(mockApi: PermissionApi) {
<TestApiProvider apis={[[permissionApiRef, mockApi]]}>
<TestComponent />
</TestApiProvider>
,
</SWRConfig>,
);
}