diff --git a/src/react/MainMenu.tsx b/src/react/MainMenu.tsx index 45196f4c5..0c5b40072 100644 --- a/src/react/MainMenu.tsx +++ b/src/react/MainMenu.tsx @@ -71,7 +71,7 @@ export default ({
+ mapsProvider && openURL(httpsRegex.test(mapsProvider) ? mapsProvider : 'https://' + mapsProvider, false)} + /> + A Minecraft client in the browser!
- - {mapsProvider && - openURL(httpsRegex.test(mapsProvider) ? mapsProvider : 'https://' + mapsProvider, false)} - />} ) } diff --git a/src/react/Screen.tsx b/src/react/Screen.tsx index 6654e4ddf..a17ede406 100644 --- a/src/react/Screen.tsx +++ b/src/react/Screen.tsx @@ -5,14 +5,15 @@ interface Props { style?: React.CSSProperties className?: string titleSelectable?: boolean + titleMarginTop?: number } -export default ({ title, children, backdrop = true, style, className, titleSelectable }: Props) => { +export default ({ title, children, backdrop = true, style, className = '', titleSelectable, titleMarginTop }: Props) => { return ( <> {backdrop === 'dirt' ?
: backdrop ?
: null}
-
+
{title}
{children}
diff --git a/src/react/SignInMessage.tsx b/src/react/SignInMessage.tsx index 2c530f3ac..b51edee93 100644 --- a/src/react/SignInMessage.tsx +++ b/src/react/SignInMessage.tsx @@ -1,6 +1,7 @@ import { useState } from 'react' import { useUtilsEffect } from '@zardoy/react-util' -import PixelartIcon from './PixelartIcon' +import { QRCodeSVG } from 'qrcode.react' +import PixelartIcon, { pixelartIcons } from './PixelartIcon' import Screen from './Screen' import Button from './Button' @@ -8,7 +9,6 @@ export default ({ code = 'ABCD-EFGH-IJKL-MNOP', loginLink = 'https://aka.ms/devicelogin', connectingServer = 'mc.example.comsdlfjsklfjsfjdskfjsj', - warningText = true, expiresEnd = Date.now() + 1000 * 60 * 5, setSaveToken = (() => { }) as ((state: boolean) => void) | undefined, defaultSaveToken = true, @@ -28,7 +28,7 @@ export default ({ }) }, []) - return + return
{loginLink} + >{loginLink.replace(/(https?:\/\/)?(www\.)?/, '')} {' '} and enter the code above.
- {warningText &&
- Join only vanilla servers! This client is detectable and may result in a ban by anti-cheat plugins. -
} +
+ + Join only vanilla servers! This client is detectable and may result in a ban by anti-cheat plugins. +
+ +
{setSaveToken &&