revert changes
This commit is contained in:
3 files changed
+3
-7
No files matched your search
@@ -12,8 +12,7 @@ export const buildIntegrationUrl = (
|
||||
mode: UrlTemplateMode,
|
||||
dockerPort?: number,
|
||||
): string => {
|
||||
let host = baseHost.trim();
|
||||
while (host.endsWith("/")) host = host.slice(0, -1);
|
||||
const host = baseHost.trim().replace(/\/+$/, "");
|
||||
if (!host) return "";
|
||||
|
||||
const slug = getSlugForKind(kind);
|
||||
|
||||
@@ -474,8 +474,7 @@ export const getIntegrationDefaultPort = (kind: IntegrationKind): number | undef
|
||||
export const getIntegrationApiKeyUrl = (integrationUrl: string, kind: IntegrationKind): string | null => {
|
||||
const definition = integrationDefs[kind];
|
||||
if (!("apiKeySettingsPath" in definition)) return null;
|
||||
let base = integrationUrl;
|
||||
while (base.endsWith("/")) base = base.slice(0, -1);
|
||||
const base = integrationUrl.replace(/\/+$/, "");
|
||||
if (!base) return null;
|
||||
return `${base}${definition.apiKeySettingsPath}`;
|
||||
};
|
||||
|
||||
@@ -3,8 +3,6 @@ import { createTheme } from "@mantine/core";
|
||||
import { primaryColor } from "./theme/colors/primary";
|
||||
import { secondaryColor } from "./theme/colors/secondary";
|
||||
|
||||
const XXL_MODAL_SIZE = "75rem";
|
||||
|
||||
export const theme = createTheme({
|
||||
colors: {
|
||||
primaryColor,
|
||||
@@ -15,7 +13,7 @@ export const theme = createTheme({
|
||||
Modal: {
|
||||
vars: (_theme: unknown, props: { size?: string }) => {
|
||||
if (props.size === "xxl") {
|
||||
return { root: { "--modal-size": XXL_MODAL_SIZE } };
|
||||
return { root: { "--modal-size": "75rem" } };
|
||||
}
|
||||
return { root: {} };
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user