1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Switch typing of a component to props instead of React.FC

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2021-12-31 08:47:51 +02:00
parent 6ca58570b0
commit 71388a0ea3
No known key found for this signature in database
GPG Key ID: 5F465B5672372402

View File

@ -54,7 +54,7 @@ ipcRendererOn("history:can-go-forward", (event, state: boolean) => {
nextEnabled.set(state);
});
const NonInjectedTopBar: React.FC<Props & Dependencies> = (({ items, children, ...rest }) => {
const NonInjectedTopBar = (({ items, children, ...rest }: Props & Dependencies) => {
const elem = useRef<HTMLDivElement>();
const window = useMemo(() => getCurrentWindow(), []);