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 10, 2020
1 parent cf6d390 commit 62dffa5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 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
1 change: 0 additions & 1 deletion packages/app/src/pages/sign-in/initial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,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 62dffa5

Please sign in to comment.