diff --git a/app/components/NudeButton.tsx b/app/components/NudeButton.tsx index da37b45ed..4ba513ed2 100644 --- a/app/components/NudeButton.tsx +++ b/app/components/NudeButton.tsx @@ -1,6 +1,6 @@ import styled from "styled-components"; -const Button = styled.button.attrs(() => ({ type: "button" }))<{ +const Button = styled.button.attrs((type) => ({ type: type || "button" }))<{ width?: number; height?: number; size?: number; diff --git a/app/components/Sidebar/components/DocumentLink.tsx b/app/components/Sidebar/components/DocumentLink.tsx index 0d25abbf0..85015d7f0 100644 --- a/app/components/Sidebar/components/DocumentLink.tsx +++ b/app/components/Sidebar/components/DocumentLink.tsx @@ -315,6 +315,7 @@ function DocumentLink( {can.createChildDocument && (