diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 51cf6798..47a87ea5 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -1567,6 +1567,46 @@
"react-is": "^16.8.0 || ^17.0.0"
}
},
+ "@mui/base": {
+ "version": "5.0.0-alpha.63",
+ "resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-alpha.63.tgz",
+ "integrity": "sha512-/jURXlBAYqZaWw92XfJgc6aiHnDcNVuRxBskub57HXWCMK3OiVVdfUEWJEdCjOacCKiw3+Etc5alI9Omaqrg2g==",
+ "requires": {
+ "@babel/runtime": "^7.16.3",
+ "@emotion/is-prop-valid": "^1.1.1",
+ "@mui/utils": "^5.2.3",
+ "@popperjs/core": "^2.4.4",
+ "clsx": "^1.1.1",
+ "prop-types": "^15.7.2",
+ "react-is": "^17.0.2"
+ }
+ },
+ "@mui/material": {
+ "version": "5.2.7",
+ "resolved": "https://registry.npmjs.org/@mui/material/-/material-5.2.7.tgz",
+ "integrity": "sha512-JaDl9GJSV17QLf4OoDUZKvVjZ/7UvqOBAxwLwUTnKZEME4REaGTkaAeHrzLpcKCm0LlNGD2HOKAIeykI6WJiqg==",
+ "requires": {
+ "@babel/runtime": "^7.16.3",
+ "@mui/base": "5.0.0-alpha.63",
+ "@mui/system": "^5.2.6",
+ "@mui/types": "^7.1.0",
+ "@mui/utils": "^5.2.3",
+ "@types/react-transition-group": "^4.4.4",
+ "clsx": "^1.1.1",
+ "csstype": "^3.0.10",
+ "hoist-non-react-statics": "^3.3.2",
+ "prop-types": "^15.7.2",
+ "react-is": "^17.0.2",
+ "react-transition-group": "^4.4.2"
+ },
+ "dependencies": {
+ "csstype": {
+ "version": "3.0.10",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.10.tgz",
+ "integrity": "sha512-2u44ZG2OcNUO9HDp/Jl8C07x6pU/eTR3ncV91SiK3dhG9TWvRVsCoJw14Ckx5DgWkzGA3waZWO3d7pgqpUI/XA=="
+ }
+ }
+ },
"@mui/private-theming": {
"version": "5.2.3",
"resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.2.3.tgz",
@@ -1626,6 +1666,11 @@
"react-is": "^17.0.2"
}
},
+ "@popperjs/core": {
+ "version": "2.11.2",
+ "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.2.tgz",
+ "integrity": "sha512-92FRmppjjqz29VMJ2dn+xdyXZBrMlE42AV6Kq6BwjWV7CNUW1hs2FtxSNLQE+gJhaZ6AAmYuO9y8dshhcBl7vA=="
+ },
"@react-native-community/cli-debugger-ui": {
"version": "6.0.0-rc.0",
"resolved": "https://registry.npmjs.org/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-6.0.0-rc.0.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index a8f164ec..91ef399b 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -26,6 +26,7 @@
"@emotion/styled": "^11.6.0",
"@material-ui/core": "^4.12.3",
"@material-ui/icons": "^4.11.2",
+ "@mui/material": "^5.2.7",
"@mui/system": "^5.2.6",
"material-ui-image": "^3.3.2",
"react-native": "^0.66.4",
diff --git a/frontend/src/components/BookPage.js b/frontend/src/components/BookPage.js
index aa48d435..03d5b9d7 100644
--- a/frontend/src/components/BookPage.js
+++ b/frontend/src/components/BookPage.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
-import { Button , Divider, Card, CardActionArea, CardContent, Typography, Grid, Select, MenuItem, FormControl, FormHelperText, List, ListItem, ListItemText, Avatar, RouterLink, ListItemAvatar} from "@material-ui/core"
+import { Button , Divider, ListItemButton, Typography, Grid, Select, MenuItem, FormControl, FormHelperText, List, ListItem, ListItemText, Avatar, RouterLink, ListItemAvatar} from "@mui/material";
import { Link } from 'react-router-dom'
export default class BookPage extends Component {
@@ -63,63 +63,72 @@ export default class BookPage extends Component {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
- bookCards=()=>{
+ bookListItems=()=>{
return (this.state.orders.map((order) =>
-
-
-
- this.handleCardClick(order.id)}>
-
-
-
-
-
-
-
-
-
- {order.maker_nick}
-
-
-
-
- {/* CARD PARAGRAPH CONTENT */}
-
-
- ◑{order.type == 0 ? Buys : Sells }
- {parseFloat(parseFloat(order.amount).toFixed(4))}
- {" " +this.getCurrencyCode(order.currency)} worth of bitcoin
-
-
-
- ◑ Payment via {order.payment_method}
-
-{/*
-
- ◑ Priced {order.is_explicit ?
- " explicitly at " + this.pn(order.satoshis) + " Sats" : (
- " at " +
- parseFloat(parseFloat(order.premium).toFixed(4)) + "% over the market"
- )}
- */}
-
-
- ◑ {" 42,354 "}{this.getCurrencyCode(order.currency)}/BTC (Binance API)
-
-
-
-
-
-
-
-
-
+
+
+
+
+
));
}
+//
+//
+
+// this.handleCardClick(order.id)}>
+//
+
+//
+//
+//
+//
+//
+//
+//
+// {order.maker_nick}
+//
+//
+//
+
+// {/* CARD PARAGRAPH CONTENT */}
+//
+//
+// ◑{order.type == 0 ? Buys : Sells }
+// {parseFloat(parseFloat(order.amount).toFixed(4))}
+// {" " +this.getCurrencyCode(order.currency)} worth of bitcoin
+//
+
+//
+// ◑ Payment via {order.payment_method}
+//
+// {/*
+//
+// ◑ Priced {order.is_explicit ?
+// " explicitly at " + this.pn(order.satoshis) + " Sats" : (
+// " at " +
+// parseFloat(parseFloat(order.premium).toFixed(4)) + "% over the market"
+// )}
+// */}
+
+//
+// ◑ {" 42,354 "}{this.getCurrencyCode(order.currency)}/BTC (Binance API)
+//
+//
+
+//
+
+//
+//
+//
+//
+
render() {
return (
@@ -192,7 +201,12 @@ export default class BookPage extends Component {
Be the first one to create an order
)
- : this.bookCards()
+ :
+
+
+ {this.bookListItems()}
+
+
}