Enforce some naming conventions (#4813)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-03-01 13:06:53 -05:00
1 parent dc6615f98f
commit 0b32775d40
197 files changed
+630 -634

No files matched your search

@@ -24,7 +24,7 @@ export interface NavigationTree {
children?: NavigationTree[];
}
interface Props {
export interface RecursiveTreeViewProps {
data: NavigationTree[];
}
@@ -36,7 +36,7 @@ function getSelectedNode(data: NavigationTree[]) {
return deepDash.findDeep(data, (value, key) => key === "selected" && value === true)?.parent;
}
export function RecursiveTreeView({ data }: Props) {
export function RecursiveTreeView({ data }: RecursiveTreeViewProps) {
const [expanded, setExpanded] = React.useState<string[]>([]);
const prevData = useRef<NavigationTree[]>(data);