Skip to content

Commit

Permalink
fix: revert drawer changes from brand audit, closes #4249
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Oct 18, 2023
1 parent ceaf228 commit 2ed6b6d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
3 changes: 0 additions & 3 deletions src/app/components/drawer/controlled-drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ export function ControlledDrawer(props: ControlledDrawerProps) {

return (
<BaseDrawer
height="100vh"
position={['absolute', 'fixed']}
top={['-24px', 0]}
enableGoBack={enableGoBack}
icon={icon}
isShowing={isShowing}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ export const SwitchAccountDrawer = memo(() => {

return isShowing && accounts ? (
<ControlledDrawer title="Select account" isShowing={isShowing} onClose={onClose}>
<Box
mb={whenWallet({ ledger: 'base', software: '' })}
height={['100vh', '100%']}
maxHeight={['110vh', 'inherit']}
>
<Box mb={whenWallet({ ledger: 'base', software: '' })}>
<SwitchAccountList
accounts={accounts}
currentAccountIndex={currentAccountIndex}
Expand Down
9 changes: 1 addition & 8 deletions src/app/pages/receive/receive-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { useLocation, useNavigate } from 'react-router-dom';
import { useClipboard } from '@stacks/ui';
import { HomePageSelectors } from '@tests/selectors/home.selectors';
import { Box, styled } from 'leather-styles/jsx';
import { token } from 'leather-styles/tokens';
import get from 'lodash.get';

import { RouteUrls } from '@shared/route-urls';
Expand Down Expand Up @@ -68,13 +67,7 @@ export function ReceiveModal({ type = 'full' }: ReceiveModalProps) {

return (
<>
<BaseDrawer
position={['absolute', 'fixed']}
top={[token('spacing.space.07'), 0]}
title=""
isShowing
onClose={() => navigate(backgroundLocation ?? '..')}
>
<BaseDrawer title="" isShowing onClose={() => navigate(backgroundLocation ?? '..')}>
<Box mx="space.06">
<styled.h1 mb="space.05" textStyle="heading.03">
{title}
Expand Down

0 comments on commit 2ed6b6d

Please sign in to comment.