Replace some ButtonLink
s with Link
s in Info
s
(Coding's GitHub & Anime's AniList)
This commit is contained in:
parent
5fff23156b
commit
a4496117f8
4 changed files with 12 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
|||
import React, {useState, useEffect} from "react";
|
||||
import Website from "../Website.js";
|
||||
import ButtonLink from "#parts/ButtonLink.js";
|
||||
import DataHandler from "#Infos/DataHandler.js";
|
||||
import Link from "#parts/Link.js";
|
||||
|
||||
export interface GithubInfo {
|
||||
public?: {
|
||||
|
@ -30,10 +30,10 @@ export default function GitHub() {
|
|||
|
||||
if (data.public) {
|
||||
elms.push(
|
||||
<p key={"github-date-public"}>Latest <strong>public</strong> push: <strong>{data.public.date} on {data.public.repo}</strong></p>,
|
||||
<p key={"github-date-public"}>Latest <strong>public</strong> push: <strong>{data.public.date}</strong></p>,
|
||||
);
|
||||
elms.push(
|
||||
<ButtonLink key={"more"} link={`https://github.com/${data.public.repo}`} text="Repo Link" />,
|
||||
<Link classes="mt-1 px-1 py-2 inline-block w-full font-bold leading-[18px] bg-white text-blue-800" link={`https://github.com/${data.public.repo}`} text={data.public.repo}/>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue