Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

refactor(desktop): import organization brand color keys from utils

Richie McIlroy9652fd1bd7bc
diff --git a/apps/desktop/src/routes/editor/OrganizationDropdown.tsx b/apps/desktop/src/routes/editor/OrganizationDropdown.tsx
index 4763977ab..d01a121d0 100644
--- a/apps/desktop/src/routes/editor/OrganizationDropdown.tsx
+++ b/apps/desktop/src/routes/editor/OrganizationDropdown.tsx
@@ -19,9 +19,11 @@ import {
EMPTY_ORGANIZATION_BRAND_COLORS,
encodeFileAsBase64,
ORGANIZATION_BRAND_COLOR_DEFAULTS,
+ ORGANIZATION_BRAND_COLOR_KEYS,
ORGANIZATION_BRAND_COLOR_LABELS,
ORGANIZATION_LOGO_CONTENT_TYPES,
ORGANIZATION_LOGO_MAX_BYTES,
+ type OrganizationBrandColorKey,
type OrganizationBrandColors,
updateOrganizationBranding,
} from "~/utils/organization-branding";
@@ -43,14 +45,6 @@ import {
topCenterAnimateClasses,
} from "./ui";
-const ORGANIZATION_BRAND_COLOR_KEYS = [
- "primary",
- "secondary",
- "accent",
- "background",
-] as const;
-
-type OrganizationBrandColorKey = (typeof ORGANIZATION_BRAND_COLOR_KEYS)[number];
type OrganizationLogoContentType =
(typeof ORGANIZATION_LOGO_CONTENT_TYPES)[number];