Skip to content

Commit 3417dfc

Browse files
committed
update jest snapshots, fix linter errors
1 parent f56c3fd commit 3417dfc

File tree

4 files changed

+52
-49
lines changed

4 files changed

+52
-49
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
## [1.0.4]
8+
79
### Added
810
- SecondaryColor property for bicolor spinners.
911

src/__tests__/__snapshots__/SpinnerDiamond.spec.tsx.snap

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -67,97 +67,97 @@ exports[`SpinnerDiamond matches the snapshot 1`] = `
6767
r={1.25}
6868
/>
6969
<circle
70-
cx={49}
70+
cx={48}
7171
cy={3}
7272
fill="rgba(0,0,0,0.44)"
7373
r={1.25}
7474
/>
7575
<circle
76-
cx={49}
76+
cx={48}
7777
cy={18}
7878
fill="rgba(0,0,0,0.44)"
7979
r={1.25}
8080
/>
8181
<circle
82-
cx={49}
82+
cx={48}
8383
cy={33}
8484
fill="rgba(0,0,0,0.44)"
8585
r={1.25}
8686
/>
8787
<circle
88-
cx={49}
88+
cx={48}
8989
cy={48}
9090
fill="rgba(0,0,0,0.44)"
9191
r={1.25}
9292
/>
9393
<circle
94-
cx={49}
94+
cx={48}
9595
cy={63}
9696
fill="rgba(0,0,0,0.44)"
9797
r={1.25}
9898
/>
9999
<circle
100-
cx={49}
100+
cx={48}
101101
cy={78}
102102
fill="rgba(0,0,0,0.44)"
103103
r={1.25}
104104
/>
105105
<circle
106-
cx={49}
106+
cx={48}
107107
cy={93}
108108
fill="rgba(0,0,0,0.44)"
109109
r={1.25}
110110
/>
111111
<circle
112-
cx={64}
112+
cx={63}
113113
cy={18}
114114
fill="rgba(0,0,0,0.44)"
115115
r={1.25}
116116
/>
117117
<circle
118-
cx={64}
118+
cx={63}
119119
cy={33}
120120
fill="rgba(0,0,0,0.44)"
121121
r={1.25}
122122
/>
123123
<circle
124-
cx={64}
124+
cx={63}
125125
cy={48}
126126
fill="rgba(0,0,0,0.44)"
127127
r={1.25}
128128
/>
129129
<circle
130-
cx={64}
130+
cx={63}
131131
cy={63}
132132
fill="rgba(0,0,0,0.44)"
133133
r={1.25}
134134
/>
135135
<circle
136-
cx={64}
136+
cx={63}
137137
cy={78}
138138
fill="rgba(0,0,0,0.44)"
139139
r={1.25}
140140
/>
141141
<circle
142-
cx={79}
142+
cx={78}
143143
cy={33}
144144
fill="rgba(0,0,0,0.44)"
145145
r={1.25}
146146
/>
147147
<circle
148-
cx={79}
148+
cx={78}
149149
cy={48}
150150
fill="rgba(0,0,0,0.44)"
151151
r={1.25}
152152
/>
153153
<circle
154-
cx={79}
154+
cx={78}
155155
cy={63}
156156
fill="rgba(0,0,0,0.44)"
157157
r={1.25}
158158
/>
159159
<circle
160-
cx={94}
160+
cx={93}
161161
cy={48}
162162
fill="rgba(0,0,0,0.44)"
163163
r={1.25}
@@ -265,97 +265,97 @@ exports[`SpinnerDiamond matches the snapshot with default props 1`] = `
265265
r={2.5}
266266
/>
267267
<circle
268-
cx={49}
268+
cx={48}
269269
cy={3}
270270
fill="rgba(0,0,0,0.44)"
271271
r={2.5}
272272
/>
273273
<circle
274-
cx={49}
274+
cx={48}
275275
cy={18}
276276
fill="rgba(0,0,0,0.44)"
277277
r={2.5}
278278
/>
279279
<circle
280-
cx={49}
280+
cx={48}
281281
cy={33}
282282
fill="rgba(0,0,0,0.44)"
283283
r={2.5}
284284
/>
285285
<circle
286-
cx={49}
286+
cx={48}
287287
cy={48}
288288
fill="rgba(0,0,0,0.44)"
289289
r={2.5}
290290
/>
291291
<circle
292-
cx={49}
292+
cx={48}
293293
cy={63}
294294
fill="rgba(0,0,0,0.44)"
295295
r={2.5}
296296
/>
297297
<circle
298-
cx={49}
298+
cx={48}
299299
cy={78}
300300
fill="rgba(0,0,0,0.44)"
301301
r={2.5}
302302
/>
303303
<circle
304-
cx={49}
304+
cx={48}
305305
cy={93}
306306
fill="rgba(0,0,0,0.44)"
307307
r={2.5}
308308
/>
309309
<circle
310-
cx={64}
310+
cx={63}
311311
cy={18}
312312
fill="rgba(0,0,0,0.44)"
313313
r={2.5}
314314
/>
315315
<circle
316-
cx={64}
316+
cx={63}
317317
cy={33}
318318
fill="rgba(0,0,0,0.44)"
319319
r={2.5}
320320
/>
321321
<circle
322-
cx={64}
322+
cx={63}
323323
cy={48}
324324
fill="rgba(0,0,0,0.44)"
325325
r={2.5}
326326
/>
327327
<circle
328-
cx={64}
328+
cx={63}
329329
cy={63}
330330
fill="rgba(0,0,0,0.44)"
331331
r={2.5}
332332
/>
333333
<circle
334-
cx={64}
334+
cx={63}
335335
cy={78}
336336
fill="rgba(0,0,0,0.44)"
337337
r={2.5}
338338
/>
339339
<circle
340-
cx={79}
340+
cx={78}
341341
cy={33}
342342
fill="rgba(0,0,0,0.44)"
343343
r={2.5}
344344
/>
345345
<circle
346-
cx={79}
346+
cx={78}
347347
cy={48}
348348
fill="rgba(0,0,0,0.44)"
349349
r={2.5}
350350
/>
351351
<circle
352-
cx={79}
352+
cx={78}
353353
cy={63}
354354
fill="rgba(0,0,0,0.44)"
355355
r={2.5}
356356
/>
357357
<circle
358-
cx={94}
358+
cx={93}
359359
cy={48}
360360
fill="rgba(0,0,0,0.44)"
361361
r={2.5}

src/__tests__/__snapshots__/SpinnerRomb.spec.tsx.snap

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -67,97 +67,97 @@ exports[`SpinnerRomb exists for backward compatibility 1`] = `
6767
r={1.25}
6868
/>
6969
<circle
70-
cx={49}
70+
cx={48}
7171
cy={3}
7272
fill="rgba(0,0,0,0.44)"
7373
r={1.25}
7474
/>
7575
<circle
76-
cx={49}
76+
cx={48}
7777
cy={18}
7878
fill="rgba(0,0,0,0.44)"
7979
r={1.25}
8080
/>
8181
<circle
82-
cx={49}
82+
cx={48}
8383
cy={33}
8484
fill="rgba(0,0,0,0.44)"
8585
r={1.25}
8686
/>
8787
<circle
88-
cx={49}
88+
cx={48}
8989
cy={48}
9090
fill="rgba(0,0,0,0.44)"
9191
r={1.25}
9292
/>
9393
<circle
94-
cx={49}
94+
cx={48}
9595
cy={63}
9696
fill="rgba(0,0,0,0.44)"
9797
r={1.25}
9898
/>
9999
<circle
100-
cx={49}
100+
cx={48}
101101
cy={78}
102102
fill="rgba(0,0,0,0.44)"
103103
r={1.25}
104104
/>
105105
<circle
106-
cx={49}
106+
cx={48}
107107
cy={93}
108108
fill="rgba(0,0,0,0.44)"
109109
r={1.25}
110110
/>
111111
<circle
112-
cx={64}
112+
cx={63}
113113
cy={18}
114114
fill="rgba(0,0,0,0.44)"
115115
r={1.25}
116116
/>
117117
<circle
118-
cx={64}
118+
cx={63}
119119
cy={33}
120120
fill="rgba(0,0,0,0.44)"
121121
r={1.25}
122122
/>
123123
<circle
124-
cx={64}
124+
cx={63}
125125
cy={48}
126126
fill="rgba(0,0,0,0.44)"
127127
r={1.25}
128128
/>
129129
<circle
130-
cx={64}
130+
cx={63}
131131
cy={63}
132132
fill="rgba(0,0,0,0.44)"
133133
r={1.25}
134134
/>
135135
<circle
136-
cx={64}
136+
cx={63}
137137
cy={78}
138138
fill="rgba(0,0,0,0.44)"
139139
r={1.25}
140140
/>
141141
<circle
142-
cx={79}
142+
cx={78}
143143
cy={33}
144144
fill="rgba(0,0,0,0.44)"
145145
r={1.25}
146146
/>
147147
<circle
148-
cx={79}
148+
cx={78}
149149
cy={48}
150150
fill="rgba(0,0,0,0.44)"
151151
r={1.25}
152152
/>
153153
<circle
154-
cx={79}
154+
cx={78}
155155
cy={63}
156156
fill="rgba(0,0,0,0.44)"
157157
r={1.25}
158158
/>
159159
<circle
160-
cx={94}
160+
cx={93}
161161
cy={48}
162162
fill="rgba(0,0,0,0.44)"
163163
r={1.25}

src/withSharedProps.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const normalizeSize = (size: CSSProperties['width']) => (
1515
export type SpinnersProps = Partial<typeof defaultProps>;
1616

1717
export const withSharedProps = <P extends SpinnersProps>(Component: ComponentType<P>) => {
18-
const Wrapper = (props: P) => { const {
18+
const Wrapper = (props: P) => {
19+
const {
1920
color, enabled, size, style, ...otherProps
2021
} = props;
2122
const componentProps = {

0 commit comments

Comments
 (0)