mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 19:06:51 +08:00
Fix: eslint (#1030)
This commit is contained in:
@@ -55,7 +55,7 @@ type ISegmentDetailProps = {
|
||||
/**
|
||||
* Show all the contents of the segment
|
||||
*/
|
||||
export const SegmentDetail: FC<ISegmentDetailProps> = memo(({
|
||||
const SegmentDetailComponent: FC<ISegmentDetailProps> = ({
|
||||
segInfo,
|
||||
archived,
|
||||
onChangeSwitch,
|
||||
@@ -196,7 +196,8 @@ export const SegmentDetail: FC<ISegmentDetailProps> = memo(({
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
})
|
||||
}
|
||||
export const SegmentDetail = memo(SegmentDetailComponent)
|
||||
|
||||
export const splitArray = (arr: any[], size = 3) => {
|
||||
if (!arr || !arr.length)
|
||||
|
||||
@@ -19,7 +19,7 @@ type NewSegmentModalProps = {
|
||||
onSave: () => void
|
||||
}
|
||||
|
||||
const NewSegmentModal: FC<NewSegmentModalProps> = memo(({
|
||||
const NewSegmentModal: FC<NewSegmentModalProps> = ({
|
||||
isShow,
|
||||
onCancel,
|
||||
docForm,
|
||||
@@ -152,6 +152,6 @@ const NewSegmentModal: FC<NewSegmentModalProps> = memo(({
|
||||
</div>
|
||||
</Modal>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
export default NewSegmentModal
|
||||
export default memo(NewSegmentModal)
|
||||
|
||||
Reference in New Issue
Block a user