Add styled component rule (#1261)

* Add StyledComponent rule

* update doc

* update doc

* update doc
This commit is contained in:
Weiko
2023-08-17 20:58:02 -07:00
committed by GitHub
parent 390e70a196
commit 9b34a0ff3d
70 changed files with 433 additions and 354 deletions

View File

@ -9,7 +9,7 @@ type OwnProps = {
title: string;
};
const IconAndButtonContainer = styled.button`
const StyledIconAndButtonContainer = styled.button`
align-items: center;
background: inherit;
border: none;
@ -39,7 +39,7 @@ export default function NavBackButton({ title }: OwnProps) {
return (
<>
<StyledContainer>
<IconAndButtonContainer
<StyledIconAndButtonContainer
onClick={() => {
setIsNavbarSwitchingSize(true);
navigate('/', { replace: true });
@ -47,7 +47,7 @@ export default function NavBackButton({ title }: OwnProps) {
>
<IconChevronLeft />
<span>{title}</span>
</IconAndButtonContainer>
</StyledIconAndButtonContainer>
</StyledContainer>
</>
);