File tree 2 files changed +18
-19
lines changed
frontend/routes/@[scope]/(_islands)
2 files changed +18
-19
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { useCallback, useRef } from "preact/hooks";
4
4
import { JSX } from "preact/jsx-runtime" ;
5
5
import { ScopeInvite } from "../../../utils/api_types.ts" ;
6
6
import { api , path } from "../../../utils/api.ts" ;
7
+ import TbUsersPlus from "@preact-icons/tb/TbUsersPlus" ;
7
8
8
9
interface ScopeInviteFormProps {
9
10
scope : string ;
@@ -53,7 +54,7 @@ export function ScopeInviteForm(props: ScopeInviteFormProps) {
53
54
class = "contents"
54
55
onSubmit = { onSubmit }
55
56
>
56
- < div class = "mt-4 flex gap-4" >
57
+ < div class = "mt-4 flex gap-4 justify-between " >
57
58
< div class = "flex" >
58
59
< select
59
60
name = "kind"
@@ -92,6 +93,7 @@ export function ScopeInviteForm(props: ScopeInviteFormProps) {
92
93
disabled = { submitting }
93
94
>
94
95
Invite
96
+ < TbUsersPlus class = "size-5 ml-2" />
95
97
</ button >
96
98
</ div >
97
99
{ error && < p class = "text-red-600 mt-2" > { error } </ p > }
Original file line number Diff line number Diff line change 1
1
// 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" ;
3
3
import { useSignal } from "@preact/signals" ;
4
4
5
5
export function ScopeMemberLeave ( {
@@ -45,11 +45,8 @@ export function ScopeMemberLeave({
45
45
</ p >
46
46
</ div >
47
47
) }
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 && (
53
50
< input
54
51
type = "text"
55
52
class = "inline-block w-full max-w-sm px-3 input-container text-sm input"
@@ -60,18 +57,18 @@ export function ScopeMemberLeave({
60
57
} }
61
58
placeholder = "Scope name"
62
59
/>
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 >
75
72
</ form >
76
73
) ;
77
74
}
You can’t perform that action at this time.
0 commit comments