The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Prevent fullWidth from being passed to Link ie <a> (#6893)
nitinb01745dba797
diff --git a/packages/twenty-front/src/modules/ui/navigation/link/components/UndecoratedLink.tsx b/packages/twenty-front/src/modules/ui/navigation/link/components/UndecoratedLink.tsxindex c5c6e2ed15e..09cae367bac 100644--- a/packages/twenty-front/src/modules/ui/navigation/link/components/UndecoratedLink.tsx+++ b/packages/twenty-front/src/modules/ui/navigation/link/components/UndecoratedLink.tsx@@ -1,8 +1,15 @@import styled from '@emotion/styled';import React from 'react';-import { Link } from 'react-router-dom';+import { Link, LinkProps } from 'react-router-dom';-const StyledUndecoratedLink = styled(Link)<{ fullWidth: boolean }>`+type StyledLinkProps = LinkProps & {+ fullWidth?: boolean;+};++const StyledUndecoratedLink = styled(+ // eslint-disable-next-line react/jsx-props-no-spreading+ ({ fullWidth: _, ...props }: StyledLinkProps) => <Link {...props} />,+)<StyledLinkProps>`text-decoration: none;width: ${({ fullWidth }) => (fullWidth ? '100%' : 'auto')};`;