diff --git a/src/pages/create/index.tsx b/src/pages/create/index.tsx
index f1cfbd0..d3ed57a 100644
--- a/src/pages/create/index.tsx
+++ b/src/pages/create/index.tsx
@@ -1,13 +1,4 @@
-import {
- Button,
- FormHelperText,
- ListItemIcon,
- ListItemText,
- MenuItem,
- Select,
- TextField,
- Tooltip
-} from '@mui/material'
+import { Button, FormHelperText, TextField, Tooltip } from '@mui/material'
import type { Identifier, XYCoord } from 'dnd-core'
import saveAs from 'file-saver'
import JSZip from 'jszip'
@@ -932,9 +923,18 @@ export const CreatePage = () => {
}
right={
+
+
+
setUserInput(e.target.value)}
onKeyDown={handleInputKeyDown}
@@ -950,42 +950,26 @@ export const CreatePage = () => {
}
}}
/>
-
+
+
-
-
-
-
-
@@ -1088,8 +1061,8 @@ const DisplayUser = ({
{users
.filter((user) => user.role === UserRole.signer)
.map((user, index) => (
-
{users
.filter((user) => user.role === UserRole.viewer)
- .map((user, index) => {
- const userMeta = metadata[user.pubkey]
+ .map((user) => {
return (
-
-
-
-
-
-
-
-
+
+
)
})}
@@ -1179,23 +1096,26 @@ interface DragItem {
type: string
}
-type SignerRowProps = {
+type CounterpartProps = {
userMeta: ProfileMetadata
user: User
- index: number
- moveSigner: (dragIndex: number, hoverIndex: number) => void
handleUserRoleChange: (role: UserRole, pubkey: string) => void
handleRemoveUser: (pubkey: string) => void
}
-const SignerRow = ({
+type SignerCounterpartProps = CounterpartProps & {
+ index: number
+ moveSigner: (dragIndex: number, hoverIndex: number) => void
+}
+
+const SignerCounterpart = ({
userMeta,
user,
index,
moveSigner,
handleUserRoleChange,
handleRemoveUser
-}: SignerRowProps) => {
+}: SignerCounterpartProps) => {
const ref = useRef
(null)
const [{ handlerId }, drop] = useDrop<
@@ -1280,6 +1200,24 @@ const SignerRow = ({
ref={ref}
>
+
+
+ )
+}
+
+const Counterpart = ({
+ userMeta,
+ user,
+ handleUserRoleChange,
+ handleRemoveUser
+}: CounterpartProps) => {
+ return (
+ <>
-
-
+
+
+
-
+ >
)
}