Skip to content

Commit 3de1e4c

Browse files
update from feedback
1 parent 4d6cb01 commit 3de1e4c

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

frontend/routes/@[scope]/(_islands)/ScopeInviteForm.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useCallback, useRef } from "preact/hooks";
44
import { JSX } from "preact/jsx-runtime";
55
import { ScopeInvite } from "../../../utils/api_types.ts";
66
import { api, path } from "../../../utils/api.ts";
7+
import TbUsersPlus from "@preact-icons/tb/TbUsersPlus";
78

89
interface ScopeInviteFormProps {
910
scope: string;
@@ -53,7 +54,7 @@ export function ScopeInviteForm(props: ScopeInviteFormProps) {
5354
class="contents"
5455
onSubmit={onSubmit}
5556
>
56-
<div class="mt-4 flex gap-4">
57+
<div class="mt-4 flex gap-4 justify-between">
5758
<div class="flex">
5859
<select
5960
name="kind"
@@ -92,6 +93,7 @@ export function ScopeInviteForm(props: ScopeInviteFormProps) {
9293
disabled={submitting}
9394
>
9495
Invite
96+
<TbUsersPlus class="size-5 ml-2" />
9597
</button>
9698
</div>
9799
{error && <p class="text-red-600 mt-2">{error}</p>}

frontend/routes/@[scope]/(_islands)/ScopeMemberLeave.tsx

+15-18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
2-
import TbAB from "@preact-icons/tb/TbArrowRightFromArc";
2+
import TbArrowRightFromArc from "@preact-icons/tb/TbArrowRightFromArc";
33
import { useSignal } from "@preact/signals";
44

55
export function ScopeMemberLeave({
@@ -45,11 +45,8 @@ export function ScopeMemberLeave({
4545
</p>
4646
</div>
4747
)}
48-
{!isLastAdmin && (
49-
<div class="mt-4">
50-
<label class="block text-sm font-medium text-gray-700">
51-
Enter scope name to confirm:
52-
</label>
48+
<div class="mt-4 flex justify-between gap-4">
49+
{!isLastAdmin && (
5350
<input
5451
type="text"
5552
class="inline-block w-full max-w-sm px-3 input-container text-sm input"
@@ -60,18 +57,18 @@ export function ScopeMemberLeave({
6057
}}
6158
placeholder="Scope name"
6259
/>
63-
</div>
64-
)}
65-
<button
66-
class="button-danger mt-6"
67-
type="submit"
68-
name="action"
69-
value="deleteMember"
70-
disabled={error.value}
71-
>
72-
Leave
73-
<TbAB class="size-5 ml-2 rotate-180" />
74-
</button>
60+
)}
61+
<button
62+
class="button-danger"
63+
type="submit"
64+
name="action"
65+
value="deleteMember"
66+
disabled={error.value}
67+
>
68+
Leave
69+
<TbArrowRightFromArc class="size-5 ml-2 rotate-180" />
70+
</button>
71+
</div>
7572
</form>
7673
);
7774
}

0 commit comments

Comments
 (0)