Skip to content

Commit 5efc1fa

Browse files
update spinner usage (#2301)
1 parent 9da124b commit 5efc1fa

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

frontends/main/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@emotion/styled": "^11.11.0",
1616
"@mitodl/course-search-utils": "3.3.2",
1717
"@mitodl/mitxonline-api-axios": "^2025.6.3",
18-
"@mitodl/smoot-design": "^6.7.0",
18+
"@mitodl/smoot-design": "^6.8.0",
1919
"@next/bundle-analyzer": "^14.2.15",
2020
"@remixicon/react": "^4.2.0",
2121
"@sentry/nextjs": "^9.0.0",

frontends/main/src/app-pages/DashboardPage/ProfileContent.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ import { useFormik } from "formik"
44
import { useProfileMeMutation, useProfileMeQuery } from "api/hooks/profile"
55
import {
66
styled,
7-
CircularProgress,
87
CheckboxChoiceBoxField,
98
CheckboxChoiceField,
109
RadioChoiceField,
1110
SimpleSelectField,
1211
TextField,
1312
Skeleton,
1413
} from "ol-components"
15-
import { Button } from "@mitodl/smoot-design"
14+
import { Button, ButtonLoadingIcon } from "@mitodl/smoot-design"
1615

1716
import { useLearningResourceTopics } from "api/hooks/learningResources"
1817
import {
@@ -169,7 +168,7 @@ const ProfileContent: React.FC = () => {
169168
type="submit"
170169
size="large"
171170
variant="primary"
172-
endIcon={isSaving ? <CircularProgress /> : null}
171+
endIcon={isSaving ? <ButtonLoadingIcon /> : null}
173172
disabled={!formik.dirty || isSaving}
174173
form={formId}
175174
>

frontends/main/src/app-pages/OnboardingPage/OnboardingPage.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ import {
1010
StepIconProps,
1111
Container,
1212
LoadingSpinner,
13-
CircularProgress,
1413
Typography,
1514
CheckboxChoiceBoxField,
1615
RadioChoiceBoxField,
1716
SimpleSelectField,
1817
Skeleton,
1918
VisuallyHidden,
2019
} from "ol-components"
21-
import { Button } from "@mitodl/smoot-design"
20+
import { Button, ButtonLoadingIcon } from "@mitodl/smoot-design"
2221

2322
import { RiArrowRightLine, RiArrowLeftLine } from "@remixicon/react"
2423
import { useProfileMeMutation, useProfileMeQuery } from "api/hooks/profile"
@@ -352,7 +351,7 @@ const OnboardingPage: React.FC = () => {
352351
endIcon={
353352
activeStep < NUM_STEPS - 1 ? (
354353
isSaving ? (
355-
<CircularProgress />
354+
<ButtonLoadingIcon />
356355
) : (
357356
<RiArrowRightLine />
358357
)

frontends/ol-components/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ export { default as Step } from "@mui/material/Step"
9999
export { default as StepLabel } from "@mui/material/StepLabel"
100100
export type { StepIconProps } from "@mui/material/StepIcon"
101101

102-
export { default as CircularProgress } from "@mui/material/CircularProgress"
103102
export { default as FormGroup } from "@mui/material/FormGroup"
104103
export { default as Slider } from "@mui/material/Slider"
105104

yarn.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)