Skip to content

Commit 3ad1b99

Browse files
committed
UI fix
1 parent d75924e commit 3ad1b99

File tree

6 files changed

+11
-13
lines changed

6 files changed

+11
-13
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# dependencies
44
/node_modules
55
/.pnp
6-
.pnp.js
6+
/.pnp.js
7+
78

89
# testing
910
/coverage

public/crypto.png

924 Bytes
Loading

public/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
5+
<link rel="icon" href="./crypto.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
88
<meta
@@ -24,7 +24,7 @@
2424
work correctly both with client-side routing and a non-root public URL.
2525
Learn how to configure a non-root public URL by running `npm run build`.
2626
-->
27-
<title>React App</title>
27+
<title>Crypto Provider</title>
2828
</head>
2929
<body>
3030
<noscript>You need to enable JavaScript to run this app.</noscript>

src/App.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ import "./App.css";
33
import Header from "./components/Header";
44
import Homepage from "./pages/Homepage";
55
import Coinpage from "./pages/Coinpage";
6-
import {
7-
Container,
8-
createTheme,
9-
makeStyles,
10-
ThemeProvider,
11-
} from "@material-ui/core";
126

137
function App() {
148
const styles = {
@@ -19,7 +13,7 @@ function App() {
1913
},
2014
};
2115
return (
22-
<BrowserRouter basename="/">
16+
<BrowserRouter basename="">
2317
<div style={styles.App}>
2418
<Header />
2519
<Routes>

src/components/CoinInformation.js

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React, { useEffect, useState } from "react";
22
import { CryptoState } from "../pages/CrptoCoins";
33
import axios from "axios";
44
import { HistoricalChart } from "../config/api";
5-
import { ThemeProvider } from "react-bootstrap";
65
import { CircularProgress, createTheme } from "@mui/material";
76
import "./CoinInformation.css";
87
import {

src/pages/CoinsTable.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ const CoinsTable = () => {
6767
return (
6868
<ThemeProvider theme={darkTheme}>
6969
<Container sx={{ textAlign: "center" }}>
70-
<Typography variant="h4" sx={{ margin: 8, fontFamily: "monospace" }}>
70+
<Typography
71+
variant="h4"
72+
sx={{ margin: "8px auto ", fontFamily: "monospace" }}
73+
>
7174
Cryptocurrency Prices as per Market Cap
7275
</Typography>
7376

@@ -174,9 +177,10 @@ const CoinsTable = () => {
174177
</TableContainer>
175178
<Pagination
176179
sx={{
177-
padding: 2,
180+
paddingY: 2,
178181
width: "100%",
179182
display: "flex",
183+
flexWrap: "wrap",
180184
justifyContent: "center",
181185
"& .MuiPaginationItem-root": {
182186
color: "orange",

0 commit comments

Comments
 (0)