Skip to content

Commit 85c8107

Browse files
committed
* Refactoring
1 parent 5f8d8f6 commit 85c8107

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/components/App/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Text from "../../routes/Text";
1212
import {CssBaseline} from "@material-ui/core";
1313
import DropZone from "../DropZone";
1414

15-
function App() {
15+
const App = () => {
1616

1717
let themeIndex = useSelector(state => state.MainReducer.themeIndex);
1818

@@ -57,6 +57,6 @@ function App() {
5757
</BrowserRouter>
5858
</ThemeProvider>
5959
);
60-
}
60+
};
6161

6262
export default App;

src/components/BackButton/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const BackButton = () => {
99

1010
return (
1111
<Button color={"primary"} onClick={() => history.goBack()}>
12-
<ArrowLeftIcon />
12+
<ArrowLeftIcon/>
1313
</Button>
1414
);
1515
};

src/components/CryptographyMenu/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import KeyIcon from "@material-ui/icons/VpnKey";
1313
const useStyles = makeStyles(theme => ({
1414
nested: {
1515
paddingLeft: theme.spacing(4),
16-
},
16+
}
1717
}));
1818

1919
const CryptographyMenu = ({handleIndexChange, selectedIndex}) => {

src/components/CsvExport/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ const CsvExport = ({children, data, fileName}) => {
1515

1616
return (
1717
data ? (
18-
<a href={href} download={fileName} target={"_self"}
19-
style={{textDecoration: "none"}}>
20-
{children}
21-
</a>
22-
) : {children}
18+
<a href={href} download={fileName} target={"_self"}
19+
style={{textDecoration: "none"}}>
20+
{children}
21+
</a>
22+
) : {children}
2323
);
2424
};
2525

src/components/DropZone/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const DropZone = ({children}) => {
3535
{children}
3636
</div>
3737
);
38-
3938
};
4039

4140
export default DropZone;

src/components/Loadingbar/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22
import CircularProgress from "@material-ui/core/CircularProgress";
33

44
const Loadingbar = () => {
5+
56
return (
67
<div style={{display: 'flex', justifyContent: 'center'}}>
78
<CircularProgress/>

0 commit comments

Comments
 (0)