fix: removed viewer/signer button
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 43s

This commit is contained in:
Stixx 2024-11-21 11:06:31 +01:00
parent 6c7cac2336
commit 2f9017b840

View File

@ -106,7 +106,7 @@ export const CreatePage = () => {
const [userInput, setUserInput] = useState('')
const [userSearchInput, setUserSearchInput] = useState('')
const [userRole, setUserRole] = useState<UserRole>(UserRole.signer)
const [userRole] = useState<UserRole>(UserRole.signer)
const [error, setError] = useState<string>()
const [users, setUsers] = useState<User[]>([])
@ -1127,23 +1127,6 @@ export const CreatePage = () => {
)}
/>
</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 ? (
<Button
disabled={!userSearchInput || searchUsersLoading}