Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Oct 17, 2023
1 parent 0afeb0c commit c28a4a0
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 98 deletions.
150 changes: 75 additions & 75 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.12",
"@mui/lab": "^5.0.0-alpha.147",
"@mui/material": "^5.14.12",
"@mui/system": "^5.14.12",
"@mui/icons-material": "^5.14.13",
"@mui/lab": "^5.0.0-alpha.148",
"@mui/material": "^5.14.13",
"@mui/system": "^5.14.13",
"i18next": "^23.5.1",
"i18next-browser-languagedetector": "^7.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^13.2.2",
"react-number-format": "^4.9.4",
"react-i18next": "^13.3.0",
"react-number-format": "^5.3.1",
"react-query": "^3.39.3",
"react-router-dom": "^6.16.0",
"react-router-dom": "^6.17.0",
"react-scripts": "^5.0.1",
"zustand": "^4.4.3"
},
Expand Down
14 changes: 13 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {QueryClient, QueryClientProvider} from 'react-query';
import {ReactQueryDevtools} from "react-query/devtools";
import {useTranslation} from "react-i18next";

import {CssBaseline, Container, Box, Paper, Typography} from '@mui/material';
import GitHubIcon from '@mui/icons-material/GitHub';
import {CssBaseline, Container, Box, Paper, Typography, IconButton, Tooltip} from '@mui/material';
import {ThemeProvider, createTheme} from '@mui/material/styles';

import "./translation/i18n";
Expand All @@ -26,6 +27,10 @@ const queryClient = new QueryClient({
},
});

const openInNewTab = (url) => {
window.open(url, "_blank", "noreferrer");
};

export default function App() {
const [isDarkTheme, setIsDarkTheme] = useLocalStorage("isDarkTheme", false);

Expand Down Expand Up @@ -62,6 +67,13 @@ const FooterComponent = () => {
<Typography variant="body1" color="inherit">{t("footer.line2")}</Typography>
</Box>
</Paper>
<Box textAlign="center">
<Tooltip title="GitHub">
<IconButton color="inherit" aria-label="Theme" role="link" onClick={() => openInNewTab("https://github.com/DocBrown101/Bitcoin-Satoshi-Converter")}>
<GitHubIcon />
</IconButton>
</Tooltip>
</Box>
</Container>
</footer>
);
Expand Down
8 changes: 4 additions & 4 deletions src/components/Converter.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import NumberFormat from "react-number-format";
import {useTranslation} from "react-i18next";
import {NumericFormat} from 'react-number-format';
import {useTranslation} from 'react-i18next';

import {Box, Grid, Paper, Typography, IconButton} from '@mui/material';
import ContentCopyIcon from '@mui/icons-material/ContentCopy';
import BackspaceOutlinedIcon from '@mui/icons-material/BackspaceOutlined';

import ConverterStore from "../stores/ConverterStore";
import ConverterStore from '../stores/ConverterStore';
import InputElement from './InputElement';

export default function Converter() {
Expand All @@ -33,7 +33,7 @@ export default function Converter() {
<Typography color="secondary" variant="h6">
{oneFiatSats > 0 ?
<Box fontFamily="Monospace" fontWeight="fontWeightBold" fontSize="inherit" mb={2}>
<NumberFormat value={oneFiatSats}
<NumericFormat value={oneFiatSats}
displayType={'text'}
decimalScale={0}
fixedDecimalScale={true}
Expand Down
6 changes: 3 additions & 3 deletions src/components/FiatPriceResult.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {NavLink} from 'react-router-dom';
import NumberFormat from 'react-number-format';
import {NumericFormat} from 'react-number-format';
import {useTranslation} from "react-i18next";

import {Box, Grid, Button, Typography, Tooltip} from '@mui/material';
Expand Down Expand Up @@ -99,7 +99,7 @@ const PriceComponent = (props) => {
return (
<Typography color="secondary" variant="h6">
<Box fontFamily="Monospace" fontWeight="fontWeightBold" fontSize="inherit">
<NumberFormat value={props.eur}
<NumericFormat value={props.eur}
displayType={'text'}
decimalScale={2}
fixedDecimalScale={true}
Expand All @@ -108,7 +108,7 @@ const PriceComponent = (props) => {
decimalSeparator={','} />
</Box >
<Box fontFamily="Monospace" fontWeight="fontWeightBold">
<NumberFormat value={props.usd}
<NumericFormat value={props.usd}
displayType={'text'}
decimalScale={2}
fixedDecimalScale={true}
Expand Down
Loading

0 comments on commit c28a4a0

Please sign in to comment.