diff --git a/src/components/topics/TagDisplay.style.tsx b/src/components/topics/TagDisplay.style.tsx index 3df858da5..4257cae3c 100644 --- a/src/components/topics/TagDisplay.style.tsx +++ b/src/components/topics/TagDisplay.style.tsx @@ -1,7 +1,7 @@ -import { Col } from "antd"; +import { Grid } from "@mui/material"; import styled from "styled-components"; -const TagDisplayStyled = styled(Col)` +const TagDisplayStyled = styled(Grid)` margin: 16px 16px 12px 16px; margin-bottom: 12px; display: flex; diff --git a/src/components/topics/TagDisplay.tsx b/src/components/topics/TagDisplay.tsx index c394ebb84..05b57f646 100644 --- a/src/components/topics/TagDisplay.tsx +++ b/src/components/topics/TagDisplay.tsx @@ -17,7 +17,7 @@ const TagDisplay = ({ handleClose, tags, setShowTopicsForm }: ITagDisplay) => { const [isLoggedIn] = useAtom(isUserLoggedIn); return ( - + { }; return ( - + {tags.length <= 0 && {t("topics:noTopics")}} {tags && tags.map((tag) => ( - handleClose(tag?.value || tag)} + onClick={() => handleTagClick(tag?.label || tag)} + onDelete={editable ? () => handleClose(tag?.value || tag) : undefined} + deleteIcon={} style={{ + backgroundColor: colors.secondary, + color: colors.white, borderRadius: 32, padding: "4px 10px 2px", marginTop: 4, marginBottom: 4, cursor: "pointer", }} - onClick={() => handleTagClick(tag?.label || tag)} - > - {(tag?.label || tag).toUpperCase()} - + /> ))} - + ); }; diff --git a/src/components/topics/TopicForm.tsx b/src/components/topics/TopicForm.tsx index 7fca6d006..de7df3604 100644 --- a/src/components/topics/TopicForm.tsx +++ b/src/components/topics/TopicForm.tsx @@ -1,4 +1,4 @@ -import { Col } from "antd"; +import { Grid } from "@mui/material"; import React, { useState } from "react"; import { Controller, useForm } from "react-hook-form"; import FormControl from "@mui/joy/FormControl"; @@ -94,7 +94,7 @@ const TopicForm = ({ return (
- + ( - + {t("topics:addTopicsButton")} - +