Create page: search users #259
@ -106,7 +106,7 @@ export const CreatePage = () => {
|
|||||||
const [userInput, setUserInput] = useState('')
|
const [userInput, setUserInput] = useState('')
|
||||||
const [userSearchInput, setUserSearchInput] = useState('')
|
const [userSearchInput, setUserSearchInput] = useState('')
|
||||||
|
|
||||||
const [userRole, setUserRole] = useState<UserRole>(UserRole.signer)
|
const [userRole] = useState<UserRole>(UserRole.signer)
|
||||||
const [error, setError] = useState<string>()
|
const [error, setError] = useState<string>()
|
||||||
|
|
||||||
const [users, setUsers] = useState<User[]>([])
|
const [users, setUsers] = useState<User[]>([])
|
||||||
@ -1127,23 +1127,6 @@ export const CreatePage = () => {
|
|||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Button
|
|
||||||
onClick={() =>
|
|
||||||
setUserRole(
|
|
||||||
userRole === UserRole.signer
|
|
||||||
? UserRole.viewer
|
|
||||||
: UserRole.signer
|
|
||||||
)
|
|
||||||
}
|
|
||||||
variant="contained"
|
|
||||||
aria-label="Toggle User Role"
|
|
||||||
className={styles.counterpartToggleButton}
|
|
||||||
>
|
|
||||||
<FontAwesomeIcon
|
|
||||||
icon={userRole === UserRole.signer ? faPen : faEye}
|
|
||||||
/>
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
{!pastedUserNpubOrNip05 ? (
|
{!pastedUserNpubOrNip05 ? (
|
||||||
<Button
|
<Button
|
||||||
disabled={!userSearchInput || searchUsersLoading}
|
disabled={!userSearchInput || searchUsersLoading}
|
||||||
|
Loading…
Reference in New Issue
Block a user