fix: minimap off by default
This commit is contained in:
@@ -60,7 +60,7 @@ export function CanvasMenubar({
|
||||
canDuplicate = false,
|
||||
canCopy = false,
|
||||
onFitView,
|
||||
showMinimap = true,
|
||||
showMinimap = false,
|
||||
onToggleMinimap,
|
||||
}: CanvasMenubarProps) {
|
||||
const { theme, setTheme } = useTheme()
|
||||
|
||||
@@ -190,7 +190,7 @@ export function CanvasPage({ projectId }: CanvasPageProps) {
|
||||
const [lastCreatedNodeId, setLastCreatedNodeId] = React.useState<string | null>(null)
|
||||
const [isPanning, setIsPanning] = React.useState(false)
|
||||
const [isSelecting, setIsSelecting] = React.useState(false)
|
||||
const [showMinimap, setShowMinimap] = React.useState(true)
|
||||
const [showMinimap, setShowMinimap] = React.useState(false)
|
||||
const [ariaAnnouncement, setAriaAnnouncement] = React.useState<string | null>(null)
|
||||
const nodesRef = useRef(nodes)
|
||||
nodesRef.current = nodes
|
||||
|
||||
Reference in New Issue
Block a user