From 44d9c94f7ff5b1a34b6579e91035b91296dc01b2 Mon Sep 17 00:00:00 2001 From: Alexander Gabriel Date: Tue, 29 Oct 2024 22:06:29 +0100 Subject: [PATCH] use named export --- .../Projekte/TreeContainer/Tree/Root/CurrentIssues/Issues.jsx | 2 +- .../Projekte/TreeContainer/Tree/Root/CurrentIssues/index.jsx | 4 ++-- src/components/Projekte/TreeContainer/Tree/Row.jsx | 2 +- .../Projekte/TreeContainer/Tree/toggleNodeSymbol.js | 4 +--- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/Projekte/TreeContainer/Tree/Root/CurrentIssues/Issues.jsx b/src/components/Projekte/TreeContainer/Tree/Root/CurrentIssues/Issues.jsx index 138a7f9cf..e84b70f81 100644 --- a/src/components/Projekte/TreeContainer/Tree/Root/CurrentIssues/Issues.jsx +++ b/src/components/Projekte/TreeContainer/Tree/Root/CurrentIssues/Issues.jsx @@ -2,7 +2,7 @@ import { gql } from '@apollo/client' import { useQuery } from '@tanstack/react-query' import { useApolloClient } from '@apollo/client' -import { Row } from '../../Row' +import { Row } from '../../Row.jsx' export const Issues = () => { const client = useApolloClient() diff --git a/src/components/Projekte/TreeContainer/Tree/Root/CurrentIssues/index.jsx b/src/components/Projekte/TreeContainer/Tree/Root/CurrentIssues/index.jsx index 22a3c01a8..a226117e3 100644 --- a/src/components/Projekte/TreeContainer/Tree/Root/CurrentIssues/index.jsx +++ b/src/components/Projekte/TreeContainer/Tree/Root/CurrentIssues/index.jsx @@ -2,9 +2,9 @@ import { useContext } from 'react' import { observer } from 'mobx-react-lite' import max from 'lodash/max' -import { Row } from '../../Row' +import { Row } from '../../Row.jsx' import { StoreContext } from '../../../../../../storeContext.js' -import { Issues } from './Issues' +import { Issues } from './Issues.jsx' export const CurrentIssues = observer(({ count, isLoading }) => { const store = useContext(StoreContext) diff --git a/src/components/Projekte/TreeContainer/Tree/Row.jsx b/src/components/Projekte/TreeContainer/Tree/Row.jsx index 73df569ec..3da7b2ae5 100644 --- a/src/components/Projekte/TreeContainer/Tree/Row.jsx +++ b/src/components/Projekte/TreeContainer/Tree/Row.jsx @@ -22,7 +22,7 @@ import isNodeInActiveNodePath from '../isNodeInActiveNodePath.js' import isNodeOrParentInActiveNodePath from '../isNodeOrParentInActiveNodePath.js' import isNodeOpen from '../isNodeOpen.js' import toggleNode from './toggleNode.js' -import toggleNodeSymbol from './toggleNodeSymbol.js' +import { toggleNodeSymbol } from './toggleNodeSymbol.js' import { StoreContext } from '../../../../storeContext.js' import { ContextMenuTrigger } from '../../../../modules/react-contextmenu/index.js' import { useSearchParamsState } from '../../../../modules/useSearchParamsState.js' diff --git a/src/components/Projekte/TreeContainer/Tree/toggleNodeSymbol.js b/src/components/Projekte/TreeContainer/Tree/toggleNodeSymbol.js index 1fe4b8791..1776b86a6 100644 --- a/src/components/Projekte/TreeContainer/Tree/toggleNodeSymbol.js +++ b/src/components/Projekte/TreeContainer/Tree/toggleNodeSymbol.js @@ -4,7 +4,7 @@ import { getSnapshot } from 'mobx-state-tree' import isNodeOpen from '../isNodeOpen' import isNodeInActiveNodePath from '../isNodeInActiveNodePath' -const toggleNodeSymbol = ({ node, store, search, navigate }) => { +export const toggleNodeSymbol = ({ node, store, search, navigate }) => { if (!node.url) throw new Error('passed node has no url') const { openNodes: openNodesRaw, @@ -34,5 +34,3 @@ const toggleNodeSymbol = ({ node, store, search, navigate }) => { setLastTouchedNode(node.url) setOpenNodes(newOpenNodes) } - -export default toggleNodeSymbol