Skip to content

Commit

Permalink
Added Reset to dev config URL
Browse files Browse the repository at this point in the history
  • Loading branch information
frankkopp committed Nov 4, 2024
1 parent 680d4de commit a15b893
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/renderer/components/SettingsSection/Developer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { FC, useCallback, useEffect, useState } from 'react';
import { useSetting } from 'renderer/rendererSettings';
import { Toggle } from 'renderer/components/Toggle';
import * as packageInfo from '../../../../package.json';

const SettingsItem: FC<{ name: string }> = ({ name, children }) => (
<div className="flex flex-row items-center justify-between py-3.5">
Expand Down Expand Up @@ -46,6 +47,16 @@ export const DeveloperSettings: React.FC = () => {
/>
</div>
</SettingsItem>
<SettingsItem name="Reset to production configuration">
<div className="flex flex-row items-center justify-between text-white">
<button
className="rounded-md bg-red-500 px-2 py-1 text-white"
onClick={() => setConfigDownloadUrl(packageInfo.configUrls.production)}
>
Reset
</button>
</div>
</SettingsItem>
<SettingsItem name="Force Use Local Configuration">
<div className="flex flex-row items-center justify-between text-white">
<Toggle value={configForceUseLocal} onToggle={setConfigForceUseLocal} />
Expand Down

0 comments on commit a15b893

Please sign in to comment.