Skip to content

Commit

Permalink
Spinner exports
Browse files Browse the repository at this point in the history
  • Loading branch information
VTEX committed Sep 9, 2021
1 parent 1f920a7 commit 8dae0f3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/store-ui/src/atoms/Spinner/Spinner.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { forwardRef } from 'react'

export interface SpinnerProps {
export type SpinnerProps = {
/**
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
*/
Expand Down
1 change: 1 addition & 0 deletions packages/store-ui/src/atoms/Spinner/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default } from './Spinner'
export type { SpinnerProps } from './Spinner'
2 changes: 1 addition & 1 deletion packages/store-ui/src/deprecated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export type {
// The default Spinner from theme-ui, at the time of writing,
// is under-performant in terms of CPU usage
// https://github.com/vtex/faststore/pull/558
export { default as Spinner } from './Spinner'
export { default as UISpinner } from './Spinner'

// Exporting with different names not to conflict with our atom
export { Select as UISelect } from 'theme-ui'
Expand Down
3 changes: 3 additions & 0 deletions packages/store-ui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export type { BadgeProps } from './atoms/Badge'
export { default as Slider } from './atoms/Slider'
export type { SliderProps } from './atoms/Slider'

export { default as Spinner } from './atoms/Spinner'
export type { SpinnerProps } from './atoms/Spinner'

// Molecules
export { default as Bullets } from './molecules/Bullets'
export type { BulletsProps } from './molecules/Bullets'
Expand Down

0 comments on commit 8dae0f3

Please sign in to comment.