Skip to content

Commit

Permalink
fix: duplicate 'powered by' on sign in, fixes #629
Browse files Browse the repository at this point in the history
  • Loading branch information
hstove committed Nov 18, 2020
1 parent e8408ea commit 6648517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/app/src/components/extension-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 />;
Expand Down
11 changes: 1 addition & 10 deletions packages/app/src/pages/sign-in/initial.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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>
);
Expand Down

0 comments on commit 6648517

Please sign in to comment.