-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Update spinner design (#223)
- Loading branch information
Showing
6 changed files
with
27 additions
and
44 deletions.
There are no files selected for viewing
6 changes: 4 additions & 2 deletions
6
src/stories/components/Spinner.stories.ts → src/stories/components/Spinner.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import type { SVGProps } from 'react'; | ||
import React from 'react'; | ||
|
||
/** | ||
* A simple spinner component that can be used to indicate loading. | ||
*/ | ||
export default function Spinner({ className, ...rest }: SVGProps<SVGSVGElement>): JSX.Element { | ||
return ( | ||
<div | ||
className={`will-change-transform animate-spin w-16 h-16 text-ut-orange ${className ?? ''}`} | ||
style={{ animationDuration: '225ms' }} | ||
> | ||
<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' {...rest}> | ||
<path | ||
fill='currentColor' | ||
d='M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z' | ||
/> | ||
</svg> | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/views/components/injected/CourseCatalogInjectedPopup/Description.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/views/components/injected/CourseCatalogInjectedPopup/GradeDistribution.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters