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.

21 lines
398 B

5 years ago
  1. import React from "react";
  2. import useGroups from "../Hooks/group";
  3. import Loading from "./Groups";
  4. import LGroup from "./LGroup";
  5. import {Row} from "reactstrap";
  6. function LGroups() {
  7. const groups = useGroups();
  8. if (groups === null) {
  9. return <Loading/>;
  10. }
  11. return (
  12. <Row>
  13. {groups.map(group => <LGroup key={group.id} {...group} />)}
  14. </Row>
  15. );
  16. }
  17. export default LGroups;