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 committed 2021-12-31 09:32:24 +02:00
1 parent 6ca58570b0
commit 71388a0ea3
1 file changed
+1 -1
@@ -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(), []);