Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(agent-share): import Skeleton from base-ui (#19111)

Rdmclin27049ddf1791d
diff --git a/src/features/AgentShareSettings/UsageSection.tsx b/src/features/AgentShareSettings/UsageSection.tsx
index 87037300fcb..c7f4d410e2d 100644
--- a/src/features/AgentShareSettings/UsageSection.tsx
+++ b/src/features/AgentShareSettings/UsageSection.tsx
@@ -1,7 +1,7 @@
'use client';
-import { Flexbox, Skeleton } from '@lobehub/ui';
-import { Text } from '@lobehub/ui/base-ui';
+import { Flexbox } from '@lobehub/ui';
+import { SkeletonText, Text } from '@lobehub/ui/base-ui';
import { Progress } from 'antd';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -54,7 +54,7 @@ const UsageSection = memo<UsageSectionProps>(({ agentId, monthlySpendLimit }) =>
return (
<Section desc={t('share.settings.usage.desc')} title={t('share.settings.usage.title')}>
{isLoading ? (
- <Skeleton active paragraph={{ rows: 2 }} title={false} />
+ <SkeletonText rows={2} />
) : hasLoadError ? (
<AsyncError
error={error}
diff --git a/src/features/AgentShareVisitor/TopicPanel.tsx b/src/features/AgentShareVisitor/TopicPanel.tsx
index a071184fdb2..16bfe88f9ae 100644
--- a/src/features/AgentShareVisitor/TopicPanel.tsx
+++ b/src/features/AgentShareVisitor/TopicPanel.tsx
@@ -1,7 +1,7 @@
'use client';
-import { Center, Flexbox, SkeletonTitle } from '@lobehub/ui';
-import { ActionIcon, Text } from '@lobehub/ui/base-ui';
+import { Center, Flexbox } from '@lobehub/ui';
+import { ActionIcon, SkeletonText, Text } from '@lobehub/ui/base-ui';
import { createStaticStyles, cssVar, cx } from 'antd-style';
import { MessageSquarePlus } from 'lucide-react';
import { memo } from 'react';
@@ -77,7 +77,7 @@ const TopicPanel = memo<{
<Flexbox gap={4}>
{LOADING_ROW_WIDTHS.map((width, index) => (
<Flexbox key={index} paddingBlock={6} paddingInline={8}>
- <SkeletonTitle style={{ marginBottom: 0, width }} />
+ <SkeletonText style={{ marginBottom: 0, width }} />
</Flexbox>
))}
</Flexbox>