Skip to content

The open alternative to Salesforce, designed for AI.

Stop forwarding the `active` prop for the `TabButton` component (#12501)

Baptiste Devessier7f19111e57eb
diff --git a/packages/twenty-ui/src/input/button/components/TabButton.tsx b/packages/twenty-ui/src/input/button/components/TabButton.tsx
index 2ec21be7844..ec9c8c1f382 100644
--- a/packages/twenty-ui/src/input/button/components/TabButton.tsx
+++ b/packages/twenty-ui/src/input/button/components/TabButton.tsx
@@ -1,3 +1,4 @@
+import isPropValid from '@emotion/is-prop-valid';
import styled from '@emotion/styled';
import { Pill } from '@ui/components/Pill/Pill';
import { Avatar, IconComponent } from '@ui/display';
@@ -5,7 +6,9 @@ import { ThemeContext } from '@ui/theme';
import { ReactElement, useContext } from 'react';
import { Link } from 'react-router-dom';
-const StyledTabButton = styled.button<{
+const StyledTabButton = styled('button', {
+ shouldForwardProp: (prop) => isPropValid(prop) && prop !== 'active',
+})<{
active?: boolean;
disabled?: boolean;
to?: string;