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

Remove unused import

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-08-08 09:37:27 +03:00
parent b7ce498179
commit a2e6d6e313

View File

@ -5,7 +5,7 @@
// import "./pods.scss"; // import "./pods.scss";
import React, { Fragment, HTMLProps } from "react"; import React, { Fragment } from "react";
import { disposeOnUnmount, observer } from "mobx-react"; import { disposeOnUnmount, observer } from "mobx-react";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import { KubeObjectListLayout } from "../kube-object-list-layout"; import { KubeObjectListLayout } from "../kube-object-list-layout";
@ -337,27 +337,3 @@ export const Pods = withInjectables<Dependencies>(NonInjectedPods, {
subscribeToStores: di.inject(subscribeStoresInjectable), subscribeToStores: di.inject(subscribeStoresInjectable),
}), }),
}); });
function IndeterminateCheckbox({
indeterminate,
className = '',
...rest
}: { indeterminate?: boolean } & HTMLProps<HTMLInputElement>) {
const ref = React.useRef<HTMLInputElement>(null!)
React.useEffect(() => {
if (typeof indeterminate === 'boolean') {
ref.current.indeterminate = !rest.checked && indeterminate
}
}, [ref, indeterminate])
return (
<input
type="checkbox"
ref={ref}
className={className}
style={{ cursor: "pointer" }}
{...rest}
/>
)
}