Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
damianstasik committed Aug 31, 2023
1 parent ae71d22 commit 3c5a4e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/Supporters/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import React from "react";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import supporters from "../../../supporters.json";
import Link from "@docusaurus/Link";
Expand Down Expand Up @@ -54,7 +54,6 @@ function groupSupportersByType(supporters) {

export default function Supporters() {
const { siteConfig } = useDocusaurusContext();
const [showAll, setShowAll] = useState(false);
const groupedSupporters = groupSupportersByType(supporters);
const types = Object.keys(groupedSupporters);

Expand Down Expand Up @@ -106,7 +105,7 @@ export default function Supporters() {
</table>
<div className="flex gap-6 justify-center">
<Button variant="secondary" href="/supporters">
{showAll ? "Show Less" : "Show More"}
Show More
</Button>
<Button variant="primary" href="/support">
Support Us
Expand Down

0 comments on commit 3c5a4e8

Please sign in to comment.