From 925f8183d7797e869f2cdf21add4a13e83af0462 Mon Sep 17 00:00:00 2001
From: Oisin Coveney <oisin@metabase.com>
Date: Tue, 15 Aug 2023 18:23:16 +0300
Subject: [PATCH] Add emotion.d.ts (#33191)

---
 .../SearchFilterModal/SearchFilterModal.styled.tsx         | 3 +--
 frontend/src/types/emotion.d.ts                            | 7 +++++++
 2 files changed, 8 insertions(+), 2 deletions(-)
 create mode 100644 frontend/src/types/emotion.d.ts

diff --git a/frontend/src/metabase/search/components/SearchFilterModal/SearchFilterModal.styled.tsx b/frontend/src/metabase/search/components/SearchFilterModal/SearchFilterModal.styled.tsx
index 33cfecb64ea..6e480bfc978 100644
--- a/frontend/src/metabase/search/components/SearchFilterModal/SearchFilterModal.styled.tsx
+++ b/frontend/src/metabase/search/components/SearchFilterModal/SearchFilterModal.styled.tsx
@@ -1,9 +1,8 @@
 import styled from "@emotion/styled";
-import { color } from "metabase/lib/colors";
 
 export const SearchFilterWrapper = styled.div`
   & > * {
-    border-bottom: 1px solid ${color("border")};
+    border-bottom: 1px solid ${({ theme }) => theme.colors.border[0]};
     padding: 1.5rem 2rem;
     margin: 0;
   }
diff --git a/frontend/src/types/emotion.d.ts b/frontend/src/types/emotion.d.ts
new file mode 100644
index 00000000000..06e1696f7ed
--- /dev/null
+++ b/frontend/src/types/emotion.d.ts
@@ -0,0 +1,7 @@
+import "@emotion/react";
+import type { MantineTheme } from "@mantine/core";
+
+declare module "@emotion/react" {
+  // eslint-disable-next-line @typescript-eslint/no-empty-interface
+  export interface Theme extends MantineTheme {}
+}
-- 
GitLab