Fix TypeScript errors with @sanity/styled-components

This commit is contained in:
codegen-sh[bot]
2025-08-18 13:32:44 +00:00
parent d6d1ec8f93
commit f7e0057f24
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -201,9 +201,7 @@ export const MenuAnchorCSS = css<MenuAnchorProps>`
`}
`;
export const MenuAnchor = styled.a`
${MenuAnchorCSS}
`;
export const MenuAnchor = styled.a(MenuAnchorCSS);
const SelectedWrapper = styled.span`
width: 24px;
+1 -1
View File
@@ -60,7 +60,7 @@ const SubMenu = React.forwardRef(function _Template(
<>
<MenuButton ref={ref} {...menu} {...rest}>
{(props) => (
<MenuAnchor disclosure {...props}>
<MenuAnchor {...props} disclosure>
{title} <Disclosure color={theme.textTertiary} />
</MenuAnchor>
)}