From abb8a5374590f7b500d58690e1fc699f5dbf23ee Mon Sep 17 00:00:00 2001 From: Dan Yishai Date: Sun, 19 Nov 2023 03:26:49 +0200 Subject: [PATCH] Changed API links to external --- .../components/settings/ServerInfoPanel.tsx | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/settings/ServerInfoPanel.tsx b/frontend/src/components/settings/ServerInfoPanel.tsx index 46996fc..bdb218b 100644 --- a/frontend/src/components/settings/ServerInfoPanel.tsx +++ b/frontend/src/components/settings/ServerInfoPanel.tsx @@ -14,6 +14,25 @@ import { formatBytes } from "@utils/FormatBytes" import { formatSecondsDurationLong } from "@utils/FormatSecondsDurationLong" import React, { useCallback, useEffect, useState } from "react" +interface LinkButtonProps { + href: string + children?: React.ReactNode +} + +const LinkButton: React.FC = ({ href, children }) => ( + +) + export const ServerInfoPanel: React.FC = () => { const client = useClient() const getServerInfo = useCallback(() => client.settings.getServerInfo(), [client]) @@ -135,12 +154,8 @@ export const ServerInfoPanel: React.FC = () => { - - + API Explorer + API Docs