Skip to content

Commit

Permalink
Fix fullscreen order click and info image
Browse files Browse the repository at this point in the history
  • Loading branch information
Reckless-Satoshi committed Nov 7, 2022
1 parent b252303 commit f65cef2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 61 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/BookTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ const BookTable = ({
setPageSize(newPageSize);
setUseDefaultPageSize(false);
}}
onRowClick={(params: any) => history.push('/order/' + params.row.id)} // Whole row is clickable, but the mouse only looks clickly in some places.
onRowClick={(params: any) => onOrderClicked(params.row.id)}
/>
</Paper>
</Dialog>
Expand Down
75 changes: 15 additions & 60 deletions frontend/src/components/Dialogs/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ import {
DialogActions,
DialogContent,
Button,
Grid,
Accordion,
AccordionDetails,
AccordionSummary,
} from '@mui/material';
import SmoothImage from 'react-smooth-image';
import MediaQuery from 'react-responsive';
import { pn } from '../../utils';

// Icons
Expand All @@ -37,63 +34,21 @@ const InfoDialog = ({ maxAmount, open, onClose }: Props): JSX.Element => {
scroll='paper'
>
<DialogContent>
<MediaQuery minWidth={475}>
<Grid container>
<Grid item xs={8}>
<Typography component='h4' variant='h4'>
{t('What is RoboSats?')}
</Typography>
<Typography component='div' variant='body2'>
<p>
{t('It is a BTC/FIAT peer-to-peer exchange over lightning.')} <br />
{t(
'It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.',
)}
</p>

<p>
{t('RoboSats is an open source project ')}{' '}
<Link href='https://github.com/reckless-satoshi/robosats'>{t('(GitHub).')}</Link>
</p>
</Typography>
</Grid>
<Grid item xs={4}>
<SmoothImage
src={window.location.origin + '/static/assets/images/v0.1.2-04.png'}
imageStyles={{
borderRadius: '50%',
border: '2px solid #555',
filter: 'drop-shadow(1px 1px 1px #000000)',
height: '170px',
width: '170px',
}}
/>
</Grid>
</Grid>
<div style={{ height: 15 }} />
</MediaQuery>

<MediaQuery maxWidth={474}>
<Typography component='h4' variant='h4'>
{t('What is RoboSats?')}
</Typography>
<Typography component='div' variant='body2'>
<p>
{t('It is a BTC/FIAT peer-to-peer exchange over lightning.') + ' '}{' '}
{t(
'It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.',
)}
</p>
<img
width='100%'
src={window.location.origin + '/static/assets/images/v0.1.2-03.png'}
/>
<p>
{t('RoboSats is an open source project ')}{' '}
<Link href='https://github.com/reckless-satoshi/robosats'>{t('(GitHub).')}</Link>
</p>
</Typography>
</MediaQuery>
<Typography component='h4' variant='h4'>
{t('What is RoboSats?')}
</Typography>
<Typography component='div' variant='body2'>
<p>
{t('It is a BTC/FIAT peer-to-peer exchange over lightning.') + ' '}{' '}
{t(
'It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.',
)}
</p>
<p>
{t('RoboSats is an open source project ')}{' '}
<Link href='https://github.com/reckless-satoshi/robosats'>{t('(GitHub).')}</Link>
</p>
</Typography>

<Accordion disableGutters={true}>
<AccordionSummary expandIcon={<ExpandMoreIcon />}>
Expand Down

0 comments on commit f65cef2

Please sign in to comment.