Skip to content

Commit

Permalink
Merge branch 'HITK-TECH-Community:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
BHS-Harish authored Jul 31, 2024
2 parents 98e0e51 + dabd60f commit 74914d2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/src/pages/Admin/Components/Faq/Q&A/QandA.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { hideToast } from "../../../../../service/toastService";

export function QandA({ setTab, setQId, tab }) {
const [cards, setCards] = useState([]);
const [isLoaded,setIsLoaded] = useState(false)
const [isLoaded, setIsLoaded] = useState(false);
const [toast, setToast] = useState({
toastStatus: false,
toastType: "",
Expand Down Expand Up @@ -47,8 +47,10 @@ export function QandA({ setTab, setQId, tab }) {
<h5>Status</h5> {`${d.isApproved ? "Approved" : "Not Approved"}`}
</div>
<div style={{ display: "flex" }}>
{d.tags.map((tag) => (
<p className={style["tags"]}>{tag}</p>
{d.tags.map((tag, idx) => (
<p key={idx} className={style["tags"]}>
{tag.value || tag}
</p>
))}
</div>
<button
Expand Down

0 comments on commit 74914d2

Please sign in to comment.