Skip to content

Commit

Permalink
fix spinner color in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
brumm committed Feb 19, 2021
1 parent 0a873c7 commit b0b99f4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Spinner from 'react-svg-spinner'
import cache from '@/cache'
import { INDENT_SIZE } from '@/constants'
import { useStore } from '@/storage'
import { useOtherQuery, useIdleCallback } from '@/hooks'
import { useOtherQuery } from '@/hooks'
import {
getNode,
getLastCommitForNode,
Expand Down Expand Up @@ -75,7 +75,12 @@ const Node = ({ type, name, path, parentCommitmessage, level }) => {
/>
)
typeIcon =
isLoadingContents && isExpanded ? <Spinner size="16px" /> : typeIcon
isLoadingContents && isExpanded ? (
<Spinner size="16px" color="var(--color-files-explorer-icon)" />
) : (
typeIcon
)

const ExpandoIcon = isFolder ? ChevronIcon : 'div'

const [isHovering, hoverProps] = useHover()
Expand Down

0 comments on commit b0b99f4

Please sign in to comment.