Skip to content

Commit

Permalink
Misc refactor3
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jun 18, 2024
1 parent 48a2f7c commit 5c93cdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ const RenderedBlocks = observer(function ({
)
})

export { RenderedBlocks }

const LinearBlocks = observer(function ({
model,
}: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ const FeatureLabel = observer(function ({
const [labelVisible, setLabelVisible] = useState(exportSVG)
const theme = useTheme()

// we use an effect to set the label visible because there can be a
// mismatch between the server and the client after hydration due to the
// floating labels. if we are exporting an SVG we allow it as is though and
// do not use the effect
// we use an effect to set the label visible because there can be a mismatch
// between the server and the client after hydration due to the floating
// labels. if we are exporting an SVG we allow it as is though and do not use
// the effect
useEffect(() => {
setLabelVisible(true)
}, [])
Expand Down

0 comments on commit 5c93cdc

Please sign in to comment.