From 8b441b08affde3609110ba9287d6e4ce4f59434c Mon Sep 17 00:00:00 2001 From: Sendou <38327916+Sendouc@users.noreply.github.com> Date: Tue, 2 Jun 2020 22:37:22 +0300 Subject: [PATCH] added youtube --- .../src/components/user/AvatarWithInfo.tsx | 21 ++++++++++++++++++- .../src/graphql/queries/searchForUser.ts | 1 + frontend-react/src/types.ts | 1 + graphql-schemas/user.js | 1 + index.js | 2 ++ mongoose-models/user.js | 1 + 6 files changed, 26 insertions(+), 1 deletion(-) diff --git a/frontend-react/src/components/user/AvatarWithInfo.tsx b/frontend-react/src/components/user/AvatarWithInfo.tsx index 9387d9a84..dc77ec9bb 100644 --- a/frontend-react/src/components/user/AvatarWithInfo.tsx +++ b/frontend-react/src/components/user/AvatarWithInfo.tsx @@ -1,6 +1,12 @@ import { Box, Flex, Heading } from "@chakra-ui/core" import React, { useContext, useState } from "react" -import { FaEdit, FaGamepad, FaTwitch, FaTwitter } from "react-icons/fa" +import { + FaEdit, + FaGamepad, + FaTwitch, + FaTwitter, + FaYoutube, +} from "react-icons/fa" import MyThemeContext from "../../themeContext" import { User } from "../../types" import Flag from "../common/Flag" @@ -80,6 +86,19 @@ const AvatarWithInfo: React.FC = ({ user, canEdit }) => { )} + {user.youtube_name && ( + + + + {user.youtube_name} + + + )} {user.sens && (!!user.sens.stick || user.sens.stick === 0) && (