src/ui/Drawer.tsx
Function createTree
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createTree = useCallback(() => {
function recurseTree(ssorsr: StoreStructure | StoreRoute, path = "") {
return Object.entries(ssorsr).map(([key, structOrRoute]) => {
if (isStoreRoute(structOrRoute)) {
// TODO: get rid of this 's200' etc business