extenstions now do show

This commit is contained in:
Aria Moradi
2020-12-24 16:23:42 +03:30
parent 4450dfafbe
commit 5496ddbca9
4 changed files with 12 additions and 10 deletions

View File

@@ -8,6 +8,7 @@ import {
import Button from '@material-ui/core/Button';
import TemporaryDrawer from "./components/TemporaryDrawer";
import NavBar from "./components/NavBar";
import ExtensionCard from "./components/ExtensionCard";
export default function App() {
@@ -41,7 +42,7 @@ function Extensions() {
.then(response => response.json())
.then(data => setExtensions(data));
} else {
mapped = extensions.map(it => <h3>{it.name}</h3>);
mapped = extensions.map(it => <ExtensionCard {...it} />);
}
return <h2>{mapped}</h2>;