mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Store username for every room (#1381)
* store username for every room * add missing fun
This commit is contained in:
parent
5e2f164026
commit
7b3816d0d3
4 changed files with 56 additions and 7 deletions
|
@ -24,6 +24,7 @@ type MobileMenuProps = {
|
|||
setAppState: any;
|
||||
elements: readonly NonDeletedExcalidrawElement[];
|
||||
onRoomCreate: () => void;
|
||||
onUsernameChange: (username: string) => void;
|
||||
onRoomDestroy: () => void;
|
||||
onLockToggle: () => void;
|
||||
};
|
||||
|
@ -35,6 +36,7 @@ export function MobileMenu({
|
|||
exportButton,
|
||||
setAppState,
|
||||
onRoomCreate,
|
||||
onUsernameChange,
|
||||
onRoomDestroy,
|
||||
onLockToggle,
|
||||
}: MobileMenuProps) {
|
||||
|
@ -87,7 +89,7 @@ export function MobileMenu({
|
|||
isCollaborating={appState.isCollaborating}
|
||||
collaboratorCount={appState.collaborators.size}
|
||||
username={appState.username}
|
||||
onUsernameChange={(username) => setAppState({ username })}
|
||||
onUsernameChange={onUsernameChange}
|
||||
onRoomCreate={onRoomCreate}
|
||||
onRoomDestroy={onRoomDestroy}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue