The main server, and probably only repository in this org.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
648 B

import React from "react";
import useGroups from "../Hooks/lights";
import {Button, Card, CardFooter, CardHeader, Spinner} from "reactstrap";
function IndexPage() {
const groups = useGroups();
if (groups === null) {
return (
<div>
<Spinner color="primary" style={{width: "4rem", height: "4rem"}}/>
</div>
);
}
return (
<div>
{groups.map(group => (
<Card className="mt-3">
<CardHeader>{group.name}</CardHeader>
<CardFooter>
<Button color="secondary">Endre</Button>
</CardFooter>
</Card>
))}
</div>
);
}
export default IndexPage;