🩹 Fix *seerr API key link (#446)

Author:    NormanJS <NormanJS>
This commit is contained in:
Norman
2022-09-22 22:14:52 +03:00
committed by GitHub
parent 2ee2c70e9e
commit 62b789321d
2 changed files with 11 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ import { useEffect, useState } from 'react';
import { v4 as uuidv4 } from 'uuid';
import { useConfig } from '../../tools/state';
import { tryMatchPort, ServiceTypeList, StatusCodes, Config } from '../../tools/types';
import apiKeyPaths from './apiKeyPaths.json';
import Tip from '../layout/Tip';
export function AddItemShelfButton(props: any) {
@@ -307,7 +308,7 @@ export function AddAppShelfItemForm(props: AddAppShelfItemFormProps) {
target="_blank"
weight="bold"
style={{ fontStyle: 'inherit', fontSize: 'inherit' }}
href={`${hostname}/settings/general`}
href={`${hostname}/${apiKeyPaths[form.values.type as keyof typeof apiKeyPaths]}`}
>
{t('modal.tabs.options.form.integrations.apiKey.tip.link')}
</Anchor>