Skip to content

Commit

Permalink
expose custom url loading
Browse files Browse the repository at this point in the history
  • Loading branch information
byeoon committed Oct 24, 2024
1 parent b629326 commit 8115177
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/ui/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export const Tabs = {
...findByProps("TableRow", "TableRowGroup"),
RedesignSwitch: findSingular("FormSwitch"),
RedesignCheckbox: findSingular("FormCheckbox"),
RedesignRadio: findSingular("FormRadio"), //idfk how to initialize this
RedesignRadio: findSingular("FormRadio"),

} as Record<string, any>;

export const Alert = findByDisplayName("FluxContainer(Alert)");
Expand Down
7 changes: 4 additions & 3 deletions src/ui/settings/pages/Developer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default function Developer() {
/>
</>}
</TableRowGroup>
{window.__vendetta_loader?.features.loaderConfig && <TableRowGroup title="Loader config">
<TableRowGroup title="Loader config">
<TableSwitchRow
label="Load from custom url"
subLabel={"Load Opti from a custom endpoint."}
Expand All @@ -134,7 +134,7 @@ export default function Developer() {
title="Opti URL"
/>
</>}
{window.__vendetta_loader.features.devtools && <TableSwitchRow
{window.__vendetta_loader?.features.devtools && <TableSwitchRow
label="Load React DevTools"
subLabel={`Version: ${window.__vendetta_loader.features.devtools.version}`}
icon={<TableRowIcon source={getAssetIDByName("ic_badge_staff")} />}
Expand All @@ -143,7 +143,8 @@ export default function Developer() {
loaderConfig.loadReactDevTools = v;
}}
/>}
</TableRowGroup>}
</TableRowGroup>

<TableRowGroup title="Other">
<TableRow
label="Asset Browser"
Expand Down

0 comments on commit 8115177

Please sign in to comment.