Skip to content

Commit

Permalink
Error en la visualización de grupos
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Apr 29, 2024
1 parent 80ce0af commit 36a04c8
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions webapp/src/pages/Social/UserGroups.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Th,
Td,
Flex,
Box
Box,
} from "@chakra-ui/react";
import Nav from "../../components/Nav/Nav.js";
import Footer from "../../components/Footer/Footer.js";
Expand Down Expand Up @@ -58,15 +58,20 @@ const UserGroups = () => {
<>
<Nav />
<Flex maxW="xs" mt="5" flexDirection={"column"} alignItems={"center"}>
<Text fontSize="3xl" fontWeight="bold" mb="4">
{t("pages.usergroups.title")}
</Text>
{error && (
<Alert status="error" variant="subtle" mt="2">
{`Error: ${error}`}
</Alert>
)}
<Box overflowX={{ base: "scroll", lg: "auto" }} width={'100%'}>
<Text fontSize="3xl" fontWeight="bold" mb="4">
{t("pages.usergroups.title")}
</Text>
{error && (
<Alert status="error" variant="subtle" mt="2">
{`Error: ${error}`}
</Alert>
)}
<Flex
flexDir={"column"}
alignItems={"center"}
overflowX={{ base: "scroll", lg: "unset" }}
width={"100%"}
>
<Table variant="simple">
<Thead>
<Tr>
Expand Down Expand Up @@ -94,7 +99,7 @@ const UserGroups = () => {
))}
</Tbody>
</Table>
</Box>
</Flex>
</Flex>
<Footer />
</>
Expand Down

0 comments on commit 36a04c8

Please sign in to comment.