fix: bugs

This commit is contained in:
Kilu 2024-06-29 16:23:12 +08:00
parent 215910cd24
commit 7b133e60fc

View File

@ -6,7 +6,7 @@ import React, { useCallback, useContext } from 'react';
import { ReactComponent as ChevronDownIcon } from '@/assets/chevron_down.svg';
import { useTranslation } from 'react-i18next';
function OutlineItem({ view, level = 0, width }: { view: PublishViewInfo; width: number; level: number }) {
function OutlineItem({ view, level = 0, width }: { view: PublishViewInfo; width: number; level?: number }) {
const [isExpanded, setIsExpanded] = React.useState(false);
const getIcon = useCallback(() => {
if (isExpanded) {