Tasks page implementation (#120)
This commit is contained in:
49
skyvern-frontend/src/routes/settings/Settings.tsx
Normal file
49
skyvern-frontend/src/routes/settings/Settings.tsx
Normal file
@@ -0,0 +1,49 @@
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { useId } from "react";
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from "@/components/ui/select";
|
||||
import { useSettingsStore } from "@/store/SettingsStore";
|
||||
|
||||
function Settings() {
|
||||
const { environment, organization, setEnvironment, setOrganization } =
|
||||
useSettingsStore();
|
||||
const environmentInputId = useId();
|
||||
const organizationInputId = useId();
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-6">
|
||||
<h1>Settings</h1>
|
||||
<div className="flex flex-col gap-4">
|
||||
<Label htmlFor={environmentInputId}>Environment</Label>
|
||||
<div>
|
||||
<Select value={environment} onValueChange={setEnvironment}>
|
||||
<SelectTrigger>
|
||||
<SelectValue placeholder="Environment" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="local">local</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</div>
|
||||
<Label htmlFor={organizationInputId}>Organization</Label>
|
||||
<div>
|
||||
<Select value={organization} onValueChange={setOrganization}>
|
||||
<SelectTrigger>
|
||||
<SelectValue placeholder="Organization" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="skyvern">Skyvern</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export { Settings };
|
||||
13
skyvern-frontend/src/routes/settings/SettingsPageLayout.tsx
Normal file
13
skyvern-frontend/src/routes/settings/SettingsPageLayout.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Outlet } from "react-router-dom";
|
||||
|
||||
function SettingsPageLayout() {
|
||||
return (
|
||||
<div className="flex flex-col gap-4 px-6">
|
||||
<main>
|
||||
<Outlet />
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export { SettingsPageLayout };
|
||||
Reference in New Issue
Block a user