Create page: search users #259

Merged
m merged 3 commits from issue-56 into staging 2024-11-21 10:18:33 +00:00
Showing only changes of commit 2f9017b840 - Show all commits

View File

@ -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}