fix small ui issues

This commit is contained in:
HF 2020-01-25 04:11:36 +01:00
parent caf08ee32d
commit 7614329548
3 changed files with 10 additions and 4 deletions

View File

@ -83,7 +83,8 @@ const CanvasItem = ({ canvasId, canvas, changeCanvas }) => (
<span style={infoStyle}>
{(canvas.req !== -1) ? <span>User Account </span> : null}
{(canvas.req > 0) ? <span> and {canvas.req} Pixels set</span> : null}
</span><br />
</span>
{(canvas.req !== -1) ? <br /> : null}
Dimensions:
<span style={infoStyle}> {canvas.size} x {canvas.size}
{(canvas.v)

View File

@ -1,5 +1,7 @@
/*
* Menu with Buttons on the top left
*
* @flow
*/
import React from 'react';
@ -21,7 +23,8 @@ const Menu = ({
{(menuOpen) ? <DownloadButton /> : null}
{(menuOpen) ? <MinecraftButton /> : null}
{(menuOpen) ? <HelpButton /> : null}
{(minecraftname && !messages.includes('not_mc_verified') && canvasId == 0) ? <MinecraftTPButton /> : null}
{(minecraftname && !messages.includes('not_mc_verified') && canvasId === 0)
? <MinecraftTPButton /> : null}
</div>
);

View File

@ -15,7 +15,7 @@ import Palette from './Palette';
import HistorySelect from './HistorySelect';
const UI = ({ isHistoricalView }) => {
const UI = ({ isHistoricalView, is3D }) => {
if (isHistoricalView) {
return <HistorySelect />;
}
@ -23,7 +23,7 @@ const UI = ({ isHistoricalView }) => {
<div>
<PalselButton />
<Palette />
<GlobeButton />
{(is3D) ? null : <GlobeButton />}
<CoolDownBox />
<NotifyBox />
</div>
@ -33,9 +33,11 @@ const UI = ({ isHistoricalView }) => {
function mapStateToProps(state: State) {
const {
isHistoricalView,
is3D,
} = state.canvas;
return {
isHistoricalView,
is3D,
};
}