Wire up placeholder name change modal

This commit is contained in:
Gabe Kangas
2022-05-13 15:07:49 -07:00
parent e0f8a1f702
commit f14b8ea8ba
3 changed files with 58 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
import { useRecoilValue } from 'recoil';
import WebsocketService from '../../services/websocket-service';
// import { setLocalStorage } from '../../utils/helpers';
import { websocketServiceAtom } from '../stores/ClientConfigStore';
/* eslint-disable @typescript-eslint/no-unused-vars */
interface Props {}
export default function NameChangeModal(props: Props) {
const websocketService = useRecoilValue<WebsocketService>(websocketServiceAtom);
// const handleNameChange = () => {
// // Send name change
// const nameChange = {
// type: SOCKET_MESSAGE_TYPES.NAME_CHANGE,
// newName,
// };
// websocketService.send(nameChange);
// // Store it locally
// setLocalStorage(KEY_USERNAME, newName);
// };
return <div>Name change modal component goes here</div>;
}