From 78c759407a88ae5bc23278cfa7719b20266cfbec Mon Sep 17 00:00:00 2001 From: tomimarkus991 Date: Mon, 2 Aug 2021 10:07:48 +0300 Subject: [PATCH] Dupdate --- tunduk/components/Cards/InviteCard.tsx | 11 +++++-- tunduk/components/Cards/MemberCard.tsx | 5 ++-- .../components/Containers/GroupsContainer.tsx | 29 +++++++++++++------ .../components/Containers/LogsContainer.tsx | 9 +++--- tunduk/components/Invites/Invites.tsx | 14 +++------ tunduk/components/Text/LinkLabel.tsx | 3 +- 6 files changed, 40 insertions(+), 31 deletions(-) diff --git a/tunduk/components/Cards/InviteCard.tsx b/tunduk/components/Cards/InviteCard.tsx index ab65ccb..a88e1e2 100644 --- a/tunduk/components/Cards/InviteCard.tsx +++ b/tunduk/components/Cards/InviteCard.tsx @@ -19,10 +19,15 @@ export const InviteCard: React.FC = ({ const { id, groups, sender } = invite; const { avatar_url, group_name } = groups; return ( - + - + {sender} invites you @@ -32,7 +37,7 @@ export const InviteCard: React.FC = ({ - + = ({ member }) => { > } + icon={} /> {username} diff --git a/tunduk/components/Containers/GroupsContainer.tsx b/tunduk/components/Containers/GroupsContainer.tsx index 1aaaaea..abad680 100644 --- a/tunduk/components/Containers/GroupsContainer.tsx +++ b/tunduk/components/Containers/GroupsContainer.tsx @@ -1,13 +1,19 @@ -import { Box, Center, SimpleGrid, Text, VStack } from '@chakra-ui/react'; +import { + Box, + Center, + IconButton, + SimpleGrid, + Text, + VStack, +} from '@chakra-ui/react'; import React, { useEffect, useState } from 'react'; import { Link } from 'react-router-dom'; import { GroupType, StringOrUndefined } from '../../types'; -import { GradientButton } from '../Buttons'; import { GroupCard } from '../Cards'; import { Heading } from '../Headers'; +import { AddGroupIcon } from '../Icons/Doggo'; import { DogPawn } from '../Icons/LightMode'; import MainContainerLayout from '../Layouts/Containers'; -import { GradientButtonText } from '../Text'; interface Props { userGroups: GroupType[] | undefined; @@ -51,13 +57,18 @@ export const GroupsContainer: React.FC = ({ - - - New Doggo Group - - + bgColor="transparent" + _hover={{ bgColor: 'transparent' }} + icon={} + /> } isLoading={isLoading} diff --git a/tunduk/components/Containers/LogsContainer.tsx b/tunduk/components/Containers/LogsContainer.tsx index a9f6ffb..73ea2a4 100644 --- a/tunduk/components/Containers/LogsContainer.tsx +++ b/tunduk/components/Containers/LogsContainer.tsx @@ -53,12 +53,13 @@ export const LogsContainer: React.FC = ({}) => { return ( = ({}) => { // )} - - - + + + ); diff --git a/tunduk/components/Invites/Invites.tsx b/tunduk/components/Invites/Invites.tsx index dc815d5..14692eb 100644 --- a/tunduk/components/Invites/Invites.tsx +++ b/tunduk/components/Invites/Invites.tsx @@ -10,14 +10,13 @@ import { useDisclosure, VStack, } from '@chakra-ui/react'; -import { faEnvelope } from '@fortawesome/free-solid-svg-icons'; -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import React, { useEffect } from 'react'; import { useAuth } from '../../context/authContext/AuthContext'; import { InviteDataType, StringOrUndefined } from '../../types'; import { supabase } from '../../utils/supabaseClient'; import { GradientButton } from '../Buttons'; import { InviteCard } from '../Cards'; +import { InvitesIcon } from '../Icons/Navbar'; import { GradientButtonText, LinkLabel } from '../Text'; interface Props { @@ -131,14 +130,9 @@ const Invites: React.FC = ({ }, [userInvites]); return ( - + <> - + @@ -176,7 +170,7 @@ const Invites: React.FC = ({ - + ); }; export default Invites; diff --git a/tunduk/components/Text/LinkLabel.tsx b/tunduk/components/Text/LinkLabel.tsx index 28aaa25..65cd8fd 100644 --- a/tunduk/components/Text/LinkLabel.tsx +++ b/tunduk/components/Text/LinkLabel.tsx @@ -11,9 +11,8 @@ export const LinkLabel: React.FC = ({ htmlFor, label }) => { htmlFor={htmlFor} textAlign="center" fontSize="md" - m={0} cursor="pointer" - casing="uppercase" + textTransform="uppercase" > {label}