Skip to content

Commit

Permalink
moonbase: Fix crashes with renamed component
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNite committed Sep 30, 2024
1 parent bcf17d1 commit d26022e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ function addSection(name: string, element: React.FunctionComponent) {
stores: [MoonbaseSettingsStore],
element: () => {
// Require it here because lazy loading SUX
const SettingsNotice =
spacepack.findByCode("onSaveButtonColor")[0].exports.Z;
const SettingsNotice = spacepack.findByCode(
"onSaveButtonColor",
"FocusRingScope"
)[0].exports.Z;
return (
<SettingsNotice
submitting={MoonbaseSettingsStore.submitting}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export enum ExtensionPage {

import { MoonbaseSettingsStore } from "@moonlight-mod/wp/moonbase_stores";

const { DownloadIcon, TrashIcon, CircleExclamationPointIcon } =
CommonComponents;
const { DownloadIcon, TrashIcon, CircleWarningIcon } = CommonComponents;

const PanelButton = spacepack.findByCode("Masks.PANEL_BUTTON")[0].exports.Z;
const TabBarClasses = spacepack.findByExports(
Expand Down Expand Up @@ -127,7 +126,7 @@ export default function ExtensionCard({ uniqueId }: { uniqueId: number }) {
{restartNeeded && (
<PanelButton
icon={() => (
<CircleExclamationPointIcon
<CircleWarningIcon
color={CommonComponents.tokens.colors.STATUS_DANGER}
/>
)}
Expand Down

0 comments on commit d26022e

Please sign in to comment.