Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
byeoon committed Oct 24, 2024
1 parent 9fc3a5b commit 18ef16b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/ui/settings/pages/Developer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const debugInfo = getDebugInfo();

export default function Developer() {
const navigation = NavigationNative.useNavigation();
let thevar = "";
//@ts-ignore
useProxy(settings);
//@ts-ignore
Expand Down Expand Up @@ -121,14 +122,14 @@ export default function Developer() {
label="Load from custom url"
subLabel={"Load Opti from a custom endpoint."}
icon={<TableRowIcon source={getAssetIDByName("copy")} />}
value={loaderConfig.customLoadUrl.enabled}
value={loaderConfig?.customLoadUrl?.enabled}
onValueChange={(v: boolean) => {
loaderConfig.customLoadUrl.enabled = v;
}}
/>
{loaderConfig.customLoadUrl.enabled && <>
{loaderConfig?.customLoadUrl.enabled && <>
<FormInput
value={loaderConfig.customLoadUrl.url}
value={loaderConfig?.customLoadUrl.url}
onChange={(v: string) => loaderConfig.customLoadUrl.url = v}
placeholder="http://localhost:4040/opti.js"
title="Opti URL"
Expand All @@ -155,6 +156,12 @@ export default function Developer() {
})}
arrow
/>
<FormInput
value={thevar}
onChange={(v: string) => thevar = v}
placeholder="Developer"
title="URL to lead to"
/>
<TableRow
label="Opti Design Sheet"
icon={<TableRowIcon source={getAssetIDByName("ic_paint_brush")} />}
Expand Down

0 comments on commit 18ef16b

Please sign in to comment.