Skip to content

Commit

Permalink
use named export
Browse files Browse the repository at this point in the history
  • Loading branch information
barbalex committed Oct 29, 2024
1 parent 0f33543 commit 44d9c94
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/components/Projekte/TreeContainer/Tree/Row.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -34,5 +34,3 @@ const toggleNodeSymbol = ({ node, store, search, navigate }) => {
setLastTouchedNode(node.url)
setOpenNodes(newOpenNodes)
}

export default toggleNodeSymbol

0 comments on commit 44d9c94

Please sign in to comment.