Skip to content

Commit

Permalink
Remove two usages of deprecated @khanacademy/wonder-blocks-spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremywiebe committed Nov 18, 2024
1 parent 01c16db commit 416b11a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Spacing from "@khanacademy/wonder-blocks-spacing";
import {color} from "@khanacademy/wonder-blocks-tokens";
import {color, spacing} from "@khanacademy/wonder-blocks-tokens";

import DeviceFramer from "../device-framer";

Expand All @@ -21,7 +20,7 @@ const SampleContent = () => {
color: color.offWhite,
width: "90%",
height: "300px",
padding: Spacing.medium_16,
padding: spacing.medium_16,
}}
>
The DeviceFramer controls the size of the content inside the frame.
Expand Down
4 changes: 2 additions & 2 deletions packages/perseus-editor/src/components/widget-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
} from "@khanacademy/perseus";
import {useUniqueIdWithMock} from "@khanacademy/wonder-blocks-core";
import {Strut} from "@khanacademy/wonder-blocks-layout";
import Spacing from "@khanacademy/wonder-blocks-spacing";
import Switch from "@khanacademy/wonder-blocks-switch";
import {spacing} from "@khanacademy/wonder-blocks-tokens";
import * as React from "react";
import _ from "underscore";

Expand Down Expand Up @@ -241,7 +241,7 @@ function LabeledSwitch(props: {
return (
<>
<label htmlFor={id}>{label}</label>
<Strut size={Spacing.xxSmall_6} />
<Strut size={spacing.xxSmall_6} />
<Switch id={id} {...switchProps} />
</>
);
Expand Down

0 comments on commit 416b11a

Please sign in to comment.