Skip to content

Commit

Permalink
fix(ci): ignore some wrong codes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnatarHe committed Jul 27, 2024
1 parent b7f5e08 commit 11cad22
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions src/components/text-content/content-segment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,54 +37,54 @@ function ContentSegment(props: ContentSegmentProps) {

return <span>{segment}</span>

if (symbolList.has(segment)) {
return <span>{segment}</span>
}
// if (symbolList.has(segment)) {
// return <span>{segment}</span>
// }


if (creatable && !noun) {
return (
<Popover
withArrow
transitionProps={{ transition: 'pop', duration: 125 }}
width={300}
>
<Popover.Target>
<span>{segment}</span>
</Popover.Target>
<Popover.Dropdown>
<p className='w-full text-center text-xl'>{segment}</p>
<p>{t('app.nouns.empty.tip')}</p>
<div className='mt-4 flex justify-end'>
<Button onClick={() => onNounAdd(segment)}>{t('app.nouns.empty.add')}</Button>
</div>
</Popover.Dropdown>
</Popover>
)
}
// if (creatable && !noun) {
// return (
// <Popover
// withArrow
// transitionProps={{ transition: 'pop', duration: 125 }}
// width={300}
// >
// <Popover.Target>
// <span>{segment}</span>
// </Popover.Target>
// <Popover.Dropdown>
// <p className='w-full text-center text-xl'>{segment}</p>
// <p>{t('app.nouns.empty.tip')}</p>
// <div className='mt-4 flex justify-end'>
// <Button onClick={() => onNounAdd(segment)}>{t('app.nouns.empty.add')}</Button>
// </div>
// </Popover.Dropdown>
// </Popover>
// )
// }

// 不能创建,而且也没有内容,暂时不知道咋操作,先不做
if (!noun) {
return <span>{segment}</span>
}
// // 不能创建,而且也没有内容,暂时不知道咋操作,先不做
// if (!noun) {
// return <span>{segment}</span>
// }

return (
<HoverCard
transitionProps={{ transition: 'pop', duration: 125 }}
arrowSize={14}
withArrow
>
<HoverCard.Target>
<span>{segment}</span>
</HoverCard.Target>
<HoverCard.Dropdown>
<NounContentRender
noun={noun}
updatable={updatable}
onUpdate={onNounUpdate} />
</HoverCard.Dropdown>
</HoverCard>
)
// return (
// <HoverCard
// transitionProps={{ transition: 'pop', duration: 125 }}
// arrowSize={14}
// withArrow
// >
// <HoverCard.Target>
// <span>{segment}</span>
// </HoverCard.Target>
// <HoverCard.Dropdown>
// <NounContentRender
// noun={noun}
// updatable={updatable}
// onUpdate={onNounUpdate} />
// </HoverCard.Dropdown>
// </HoverCard>
// )
}

export default ContentSegment

0 comments on commit 11cad22

Please sign in to comment.