Merge pull request #633 from ente-io/fix-exif-button-placement

update exif show all button
This commit is contained in:
Manav 2022-07-05 18:03:01 +05:30 committed by GitHub
commit dafac986f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 9 deletions

View file

@ -1,11 +1,15 @@
import React, { useState } from 'react';
import constants from 'utils/strings/constants';
import { FormCheck } from 'react-bootstrap';
import { RenderInfoItem } from './RenderInfoItem';
import { LegendContainer } from '../styledComponents/LegendContainer';
import { Pre } from '../styledComponents/Pre';
import { Typography } from '@mui/material';
import {
Checkbox,
FormControlLabel,
FormGroup,
Typography,
} from '@mui/material';
export function ExifData(props: { exif: any }) {
const { exif } = props;
@ -50,12 +54,18 @@ export function ExifData(props: { exif: any }) {
<Typography variant="subtitle" mb={1}>
{constants.EXIF}
</Typography>
<FormCheck>
<FormCheck.Label>
<FormCheck.Input onChange={changeHandler} />
{constants.SHOW_ALL}
</FormCheck.Label>
</FormCheck>
<FormGroup>
<FormControlLabel
control={
<Checkbox
size="small"
onChange={changeHandler}
color="accent"
/>
}
label={constants.SHOW_ALL}
/>
</FormGroup>
</LegendContainer>
{showAll ? renderAllValues() : renderSelectedValues()}
</>

View file

@ -1,5 +1,5 @@
import { styled } from '@mui/material';
export const Pre = styled('p')`
export const Pre = styled('pre')`
color: #aaa;
padding: 7px 15px;
`;