Skip to content

Commit

Permalink
feat: new Badge
Browse files Browse the repository at this point in the history
  • Loading branch information
1pone committed Nov 12, 2024
1 parent e5420d4 commit ee27bc5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/arex/src/panes/AppSetting/AppSetting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
setLocalStorage,
useTranslation,
} from '@arextest/arex-core';
import { Tabs } from 'antd';
import { Badge, Tabs } from 'antd';
import React, { useEffect, useMemo } from 'react';

import { APP_ID_KEY, PanesType } from '@/constant';
Expand Down Expand Up @@ -46,7 +46,11 @@ const AppSetting: ArexPaneFC<{ key: string }> = (props) => {
},
{
key: 'compareConfigNew',
label: t('appSetting.compareConfig') + ' new',
label: (
<Badge size='small' count='new' offset={[12, 0]}>
{t('appSetting.compareConfig')}
</Badge>
),
children: <CompareConfigNew appId={appId} />,
},
{
Expand Down

0 comments on commit ee27bc5

Please sign in to comment.