Repository navigation
Commit d5d85a7
committed
refactor(loader): Extract
Extract the SVG generator logic for the `tailSpin` loader into a dedicated, reusable component.
Create `tailSpin` component (`src/components/tailSpin.js`):
- Export `createTailSpinSvg` helper function
- Generate unique gradient IDs dynamically to prevent SVG gradient collisions across multiple loader instances
- Explicitly set function `name` property on exported SVG creator
Refactor loader dialog (`src/dialogs/loader.js`):
- Import `createTailSpinSvg` from component path
- Remove redundant local `createTailSpinSvg` implementation and SVG gradient tracking logic
(AI generated commit message)tailSpin SVG component1 parent b143d7e commit d5d85a7
2 files changed
Lines changed: 16 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | | - | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 12 | | |
20 | 13 | | |
21 | 14 | | |
| |||
0 commit comments