diff --git a/src/actions/index.js b/src/actions/index.js index fff3bd8..0a1172d 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -623,8 +623,8 @@ export function showCanvasSelectionModal(): Action { return showModal('CANVAS_SELECTION'); } -export function showChatModal(): Action { - if (window.innerWidth > 604) { return toggleChatBox(); } +export function showChatModal(forceModal: boolean = false): Action { + if (window.innerWidth > 604 && !forceModal) { return toggleChatBox(); } return showModal('CHAT'); } diff --git a/src/components/CanvasSelectModal.jsx b/src/components/CanvasSelectModal.jsx index 3578f76..0404787 100644 --- a/src/components/CanvasSelectModal.jsx +++ b/src/components/CanvasSelectModal.jsx @@ -5,37 +5,31 @@ import React from 'react'; import { connect } from 'react-redux'; -// import FaFacebook from 'react-icons/lib/fa/facebook'; -// import FaTwitter from 'react-icons/lib/fa/twitter'; -// import FaRedditAlien from 'react-icons/lib/fa/reddit-alien'; -import Modal from './Modal'; import CanvasItem from './CanvasItem'; import type { State } from '../reducers'; const CanvasSelectModal = ({ canvases }) => ( - -

-

- Select the canvas you want to use. - Every canvas is unique and has different palettes, - cooldown and requirements. -

- { - Object.keys(canvases).map((canvasId) => ( - - )) - } +

+

+ Select the canvas you want to use. + Every canvas is unique and has different palettes, + cooldown and requirements.

-
+ { + Object.keys(canvases).map((canvasId) => ( + + )) + } +

); function mapStateToProps(state: State) { @@ -43,4 +37,9 @@ function mapStateToProps(state: State) { return { canvases }; } -export default connect(mapStateToProps)(CanvasSelectModal); +const data = { + content: connect(mapStateToProps)(CanvasSelectModal), + title: 'Canvas Selection', +}; + +export default data; diff --git a/src/components/Chat.jsx b/src/components/Chat.jsx index 8c52126..81647ae 100644 --- a/src/components/Chat.jsx +++ b/src/components/Chat.jsx @@ -25,8 +25,8 @@ const Chat = ({ chatMessages, chatChannel }) => { }, [channelMessages.length]); return ( -
-