Skip to content

Commit 675e151

Browse files
update spinner usage
1 parent ccea8bb commit 675e151

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
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.6.1",
18+
"@mitodl/smoot-design": "0.0.0-940ec29",
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
StepIconProps,
1111
Container,
1212
LoadingSpinner,
13-
CircularProgress,
13+
ButtonLoadingIcon,
1414
Typography,
1515
CheckboxChoiceBoxField,
1616
RadioChoiceBoxField,
@@ -352,7 +352,7 @@ const OnboardingPage: React.FC = () => {
352352
endIcon={
353353
activeStep < NUM_STEPS - 1 ? (
354354
isSaving ? (
355-
<CircularProgress />
355+
<ButtonLoadingIcon />
356356
) : (
357357
<RiArrowRightLine />
358358
)

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)