mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: bugs
This commit is contained in:
parent
215910cd24
commit
7b133e60fc
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user