Hide dev options in production builds
This commit is contained in:
parent
1f07d4b160
commit
d4abe70411
1 changed files with 22 additions and 18 deletions
|
|
@ -386,25 +386,29 @@ export default function Settings() {
|
||||||
defaultValue={15}
|
defaultValue={15}
|
||||||
onEditFinished={setGraphLayoutMaxIterations}
|
onEditFinished={setGraphLayoutMaxIterations}
|
||||||
/>
|
/>
|
||||||
<Separator />
|
{/* Development/Testing Section - Only visible in development mode */}
|
||||||
|
{import.meta.env.DEV && (
|
||||||
{/* Development/Testing Section */}
|
<>
|
||||||
<div className="flex flex-col gap-2">
|
<Separator />
|
||||||
<label className="text-sm leading-none font-medium text-muted-foreground">
|
|
||||||
Development
|
|
||||||
</label>
|
|
||||||
<Button
|
|
||||||
onClick={handleGenerateRandomGraph}
|
|
||||||
variant="outline"
|
|
||||||
size="sm"
|
|
||||||
className="flex items-center gap-2"
|
|
||||||
>
|
|
||||||
<Shuffle className="h-3.5 w-3.5" />
|
|
||||||
Generate Random Graph
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<Separator />
|
<div className="flex flex-col gap-2">
|
||||||
|
<label className="text-sm leading-none font-medium text-muted-foreground">
|
||||||
|
Dev Options
|
||||||
|
</label>
|
||||||
|
<Button
|
||||||
|
onClick={handleGenerateRandomGraph}
|
||||||
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
|
className="flex items-center gap-2"
|
||||||
|
>
|
||||||
|
<Shuffle className="h-3.5 w-3.5" />
|
||||||
|
Gen Random Graph
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<Separator />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<Button
|
<Button
|
||||||
onClick={saveSettings}
|
onClick={saveSettings}
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue