Skip to content

Commit

Permalink
chore: petals > prem network
Browse files Browse the repository at this point in the history
  • Loading branch information
tiero committed Nov 2, 2023
1 parent 4715323 commit 93488c4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
9 changes: 9 additions & 0 deletions src/modules/service/components/PeerToPeer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import clsx from "clsx";

const PeerToPeer = ({ className }: React.ButtonHTMLAttributes<HTMLButtonElement>) => {
return (
<sup className={clsx("text-[12px] text-justify text-white", className)}>📡 PREM NETWORK</sup>
);
};

export default PeerToPeer;
7 changes: 0 additions & 7 deletions src/modules/service/components/Petals.tsx

This file was deleted.

14 changes: 8 additions & 6 deletions src/modules/service/components/ServiceCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import useWarningModal from "../hooks/useWarningModal";
import type { ServiceCardProps } from "../types";

import Beta from "./Beta";
import Petals from "./Petals";
import PeerToPeer from "./PeerToPeer";
import ServiceActions from "./ServiceActions";

const ServiceCard = ({ className, service }: ServiceCardProps) => {
Expand Down Expand Up @@ -56,11 +56,13 @@ const ServiceCard = ({ className, service }: ServiceCardProps) => {
isWarningModalOpen={isWarningModalOpen}
/>
</div>
<h3>
{title}
{service.beta && <Beta className="md:-top-2 top-[-5px]" />}
{service.petals && <Petals className="md:-top-2 top-[-5px]" />}
</h3>
<div className="flex items-start flex-wrap w-full relative justify-between">
<h3>
{title}
{service.beta && <Beta className="md:-top-2 top-[-5px]" />}
</h3>
<h1>{service.petals && <PeerToPeer className="md:top-1" />}</h1>
</div>
</Link>
);
};
Expand Down

0 comments on commit 93488c4

Please sign in to comment.