Skip to content

Commit

Permalink
🐛 fix: fix shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Oct 7, 2023
1 parent f00c868 commit d4b9dc3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/app/market/features/AgentCard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { SpotlightCard } from '@lobehub/ui';
import { useResponsive } from 'antd-style';
import { shuffle } from 'lodash-es';
import { memo, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { Flexbox } from 'react-layout-kit';
Expand Down Expand Up @@ -50,11 +49,7 @@ const AgentCard = memo<AgentCardProps>(({ defaultAgents }) => {
<div className={styles.subTitle}>{t('title.recentSubmits')}</div>
<SpotlightCard items={agentListData.slice(0, 3)} renderItem={gridRender} />
<div className={styles.subTitle}>{t('title.allAgents')}</div>
<SpotlightCard
items={shuffle(agentListData.slice(3))}
renderItem={gridRender}
spotlight={false}
/>
<SpotlightCard items={agentListData.slice(3)} renderItem={gridRender} spotlight={false} />
</>
)}
</Flexbox>
Expand Down

0 comments on commit d4b9dc3

Please sign in to comment.