Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjeannesson committed Oct 15, 2023
1 parent 60c5e82 commit dabb7ae
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions desktop-app/renderer/pages/servers/[slug]/selectedServer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function SelectedServer({
return (
<Card className="w-[450px]">
<CardHeader>
<CardTitle>Selected Server: {server?.name}</CardTitle>
<CardTitle>Selected Server: {server.name}</CardTitle>
<CardDescription>
You can view/edit your server properties here.
</CardDescription>
Expand All @@ -44,9 +44,9 @@ export default function SelectedServer({
<div className="flex flex-col space-y-1.5">
<Label htmlFor="name">Name</Label>
<Input
key={server?.id}
key={server.id}
id="name"
defaultValue={server?.name}
defaultValue={server.name}
onChange={(e) => {
setServer({ ...server, name: e.currentTarget.value })
}}
Expand All @@ -55,9 +55,9 @@ export default function SelectedServer({
<div className="flex flex-col space-y-1.5">
<Label htmlFor="framework">URL</Label>
<Input
key={server?.id}
key={server.id}
id="url"
defaultValue={server?.url}
defaultValue={server.url}
onChange={(e) => {
setServer({ ...server, url: e.currentTarget.value })
}}
Expand All @@ -66,9 +66,9 @@ export default function SelectedServer({
<div className="flex flex-col space-y-1.5">
<Label htmlFor="token">API Token</Label>
<Input
key={server?.id}
key={server.id}
id="token"
defaultValue={server?.token}
defaultValue={server.token}
onChange={(e) => {
setServer({ ...server, token: e.currentTarget.value })
}}
Expand All @@ -84,7 +84,7 @@ export default function SelectedServer({
setServer({ ...server })
toast({
title: `Successfully edited server !`,
description: `${server?.name} updated`
description: `${server.name} updated`
})
}}
>
Expand All @@ -93,7 +93,7 @@ export default function SelectedServer({
<Button
variant="destructive"
onClick={() => {
removeServer(server?.id)
removeServer(server.id)
router
.push(
standardUrlPartial(
Expand All @@ -114,7 +114,7 @@ export default function SelectedServer({
})
toast({
title: `Successfully deleted server !`,
description: `${server?.name} deleted`
description: `${server.name} deleted`
})
}}
>
Expand Down

0 comments on commit dabb7ae

Please sign in to comment.