Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
drtechie committed Nov 14, 2024
1 parent 989fdf8 commit ec12d65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/layouts/function-components/ProductFeatures.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { marked } from "marked";
import { useState } from "react";

const Faq = ({ features }) => {
const ProductFeatures = ({ features }) => {
const [isActive, setIsActive] = useState(new Set(features.map((_, i) => i)));
const accordionHandler = (index) => {
setIsActive((prev) => {
Expand Down Expand Up @@ -65,4 +65,4 @@ const Faq = ({ features }) => {
);
};

export default Faq;
export default ProductFeatures;
2 changes: 1 addition & 1 deletion src/pages/products/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const page_data = {
links.map(link => {
return (
<li>
<a class="mt-4 inline-flex items-center font-semibold text-primary" href={link.link} target="_blank">
<a class="mt-4 inline-flex items-center font-semibold text-primary" href={link.link} rel="noopener noreferrer" target="_blank">
{link.title} <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 1024 1024" class="ml-1.5 text-xl font-bold" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 0 0 0-48.4z"></path></svg>
</a>
</li>
Expand Down

0 comments on commit ec12d65

Please sign in to comment.