fix: duplicate 'powered by' on sign in, fixes #629

This commit is contained in:
Hank Stoever
2020-11-10 10:33:16 -08:00
parent e8408ea49f
commit 6648517e01
2 changed files with 2 additions and 11 deletions

View File

@@ -51,7 +51,7 @@ const getBrowser = (): Browser | null => {
export const ExtensionButton: FC<BoxProps> = ({ ...rest }) => {
const browser = getBrowser();
const isMobile = window.matchMedia('only screen and (max-width: 760px)').matches;
const isMobile = window.matchMedia('(pointer: coarse) and (max-width: 760px)').matches;
if (browser === null || isMobile) {
return <PoweredBy />;

View File

@@ -1,13 +1,5 @@
import React, { useState, createRef } from 'react';
import {
Screen,
ScreenBody,
ScreenActions,
Title,
PoweredBy,
ScreenFooter,
ScreenHeader,
} from '@screen';
import { Screen, ScreenBody, ScreenActions, Title, ScreenFooter, ScreenHeader } from '@screen';
import { Box, Text, Input, Flex, Button, space } from '@blockstack/ui';
import { AppIcon } from '@components/app-icon';
import { Link } from '@components/link';
@@ -138,7 +130,6 @@ export const SignIn: React.FC<SignInProps> = props => {
</ScreenActions>
<ScreenFooter flexWrap="wrap" mt={space('base')}>
<ExtensionButton my={space('base')} />
<PoweredBy />
</ScreenFooter>
</Screen>
);