@@ -2,15 +2,11 @@ import React, { useEffect, useRef, useContext } from 'react';
22import Checkbox from '@mui/material/Checkbox' ;
33import FormControlLabel from '@mui/material/FormControlLabel' ;
44import Container from '@mui/material/Container' ;
5- import Typography from '@mui/material/Typography' ;
65import Button from '@mui/material/Button' ;
76import TextField from '@mui/material/TextField' ;
87import Card from '@mui/material/Card' ;
98import CardContent from '@mui/material/CardContent' ;
109import Grid from '@mui/material/Grid' ;
11- import Box from '@mui/material/Box' ;
12- import GridList from '../../components/GridList' ;
13- import Hash from '../../components/Hash' ;
1410import CopyPasteMenu from '../../components/CopyPasteMenu' ;
1511import CsvExport from '../../components/CsvExport' ;
1612import { setActiveListItem } from '../../reducers/MainReducer/Actions' ;
@@ -24,6 +20,7 @@ import {
2420import LoadingBar from '../../components/LoadingBar' ;
2521import AlertDialog from '../../components/AlertDialog' ;
2622import PageHeader from '../../components/PageHeader' ;
23+ import HashList from '../../components/HashList' ;
2724
2825const { ipcRenderer } = window . require ( 'electron' ) ;
2926
@@ -54,23 +51,13 @@ const File = () => {
5451
5552 const output = hashes && hashes . length > 0
5653 ? (
57- < Box style = { { marginTop : 10 } } >
58- < Typography component = "h2" variant = "h5" color = "primary" gutterBottom >
59- { language . output }
60- </ Typography >
61- < GridList md = { 12 } lg = { 12 } xs = { 12 } spacing = { 2 } >
62- { hashes . map ( ( e , i ) => (
63- < Hash
64- id = { i }
65- key = { e . hash }
66- content = { e . hash }
67- hashType = { e . type }
68- copy = { language . copy }
69- compareString = { compare ? compareHash : null }
70- />
71- ) ) }
72- </ GridList >
73- </ Box >
54+ < HashList
55+ marginTop = { 10 }
56+ compareHash = { compare ? compareHash : null }
57+ hashes = { hashes }
58+ copyLabel = { language . copy }
59+ outputLabel = { language . output }
60+ />
7461 )
7562 : null ;
7663
@@ -212,7 +199,6 @@ const File = () => {
212199 checked = { compare }
213200 onChange = { ( e ) => d2 ( setFileHashComparing ( e . target . checked ) ) }
214201 value = "compare"
215- color = "primary"
216202 />
217203 ) }
218204 label = { language . compare }
@@ -226,7 +212,7 @@ const File = () => {
226212 < >
227213 < Button
228214 variant = "contained"
229- onClick = { ( ) => clearData ( ) }
215+ onClick = { clearData }
230216 style = { { marginTop : 10 } }
231217 >
232218 { language . clear }
0 commit comments