Refactor(UrlCard): Optimize UrlCard

This commit is contained in:
2024-04-28 16:14:04 +08:00
parent aa96359f46
commit 340a842b4c
7 changed files with 89 additions and 103 deletions

View File

@@ -28,7 +28,8 @@ import HideScrollbar from '@/components/common/HideScrollbar'
import FlexBox from '@/components/common/FlexBox'
import RepositoryCard from '@/components/tools/RepositoryCard'
import LoadMoreCard from '@/components/tools/LoadMoreCard'
import StoreCard from '@/components/tools/StoreCard.tsx'
import StoreCard from '@/components/tools/StoreCard'
import UrlCard from '@/components/common/UrlCard'
interface ToolCardProps {
tools: ToolVo[]
@@ -540,11 +541,9 @@ const Tools = () => {
<HideScrollbar isShowVerticalScrollbar autoHideWaitingTime={1000}>
<FlexBox direction={'vertical'} className={'root-content'}>
<FlexBox direction={'horizontal'} className={'own-content'}>
<RepositoryCard
icon={<Icon component={IconOxygenNewProject} />}
toolName={'创建工具'}
url={'/create'}
/>
<UrlCard icon={IconOxygenNewProject} url={'/create'}>
</UrlCard>
{toolData &&
Object.values(
toolData.reduce((result: Record<string, ToolVo[]>, item) => {