Browse Source

fix: replace deprecated Divider `type` prop with `orientation` (#11762)

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
pull/11765/head
Alex Zhu 5 months ago
committed by GitHub
parent
commit
677ecfd28e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      CLAUDE.md
  2. 6
      src/components/Footer/index.tsx

2
CLAUDE.md

@ -125,7 +125,7 @@ Each page directory contains its own index.tsx, optional service.ts, _mock.ts, d
- `npx antd demo <Component> <name>` — get working demo code - `npx antd demo <Component> <name>` — get working demo code
- `npx antd token <Component>` — check design tokens - `npx antd token <Component>` — check design tokens
- `npx antd semantic <Component>` — check semantic classNames - `npx antd semantic <Component>` — check semantic classNames
- `npx antd lint ./src` — find deprecated or problematic antd usage - `npx antd lint ./src` — find deprecated or problematic antd usage. **Must pass with zero errors and warnings before committing**
- `npx antd doctor` — diagnose project configuration issues - `npx antd doctor` — diagnose project configuration issues
- `npx antd migrate <v1> <v2>` — migration checklist between versions - `npx antd migrate <v1> <v2>` — migration checklist between versions
- Always use `--format json` for structured output - Always use `--format json` for structured output

6
src/components/Footer/index.tsx

@ -92,7 +92,7 @@ const Footer: React.FC = () => {
</a> </a>
)} )}
</span> </span>
<Divider type="vertical" className={styles.divider} /> <Divider orientation="vertical" className={styles.divider} />
<span className={styles.group}> <span className={styles.group}>
<span className={styles.label}>Umi</span> <span className={styles.label}>Umi</span>
<a <a
@ -104,7 +104,7 @@ const Footer: React.FC = () => {
{__UMI_VERSION__} {__UMI_VERSION__}
</a> </a>
</span> </span>
<Divider type="vertical" className={styles.divider} /> <Divider orientation="vertical" className={styles.divider} />
<span className={styles.group}> <span className={styles.group}>
<span className={styles.label}>Utoo</span> <span className={styles.label}>Utoo</span>
<a <a
@ -116,7 +116,7 @@ const Footer: React.FC = () => {
{__UTOO_VERSION__} {__UTOO_VERSION__}
</a> </a>
</span> </span>
<Divider type="vertical" className={styles.divider} /> <Divider orientation="vertical" className={styles.divider} />
<a <a
className={styles.link} className={styles.link}
href={REPO_URL} href={REPO_URL}

Loading…
Cancel
Save