Add styled component rule (#1261)
* Add StyledComponent rule * update doc * update doc * update doc
This commit is contained in:
@ -10,14 +10,14 @@ import { RightDrawerPages } from '../types/RightDrawerPages';
|
||||
|
||||
import { RightDrawerTopBar } from './RightDrawerTopBar';
|
||||
|
||||
const RightDrawerPage = styled.div`
|
||||
const StyledRightDrawerPage = styled.div`
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
`;
|
||||
|
||||
const RightDrawerBody = styled.div`
|
||||
const StyledRightDrawerBody = styled.div`
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: calc(
|
||||
@ -47,9 +47,9 @@ export function RightDrawerRouter() {
|
||||
}
|
||||
|
||||
return (
|
||||
<RightDrawerPage>
|
||||
<StyledRightDrawerPage>
|
||||
<RightDrawerTopBar />
|
||||
<RightDrawerBody>{page}</RightDrawerBody>
|
||||
</RightDrawerPage>
|
||||
<StyledRightDrawerBody>{page}</StyledRightDrawerBody>
|
||||
</StyledRightDrawerPage>
|
||||
);
|
||||
}
|
||||
|
||||
@ -24,7 +24,7 @@ const StyledRightDrawerTopBar = styled.div`
|
||||
padding-right: ${({ theme }) => theme.spacing(2)};
|
||||
`;
|
||||
|
||||
const TopBarWrapper = styled.div`
|
||||
const StyledTopBarWrapper = styled.div`
|
||||
display: flex;
|
||||
`;
|
||||
|
||||
@ -34,10 +34,10 @@ export function RightDrawerTopBar() {
|
||||
|
||||
return (
|
||||
<StyledRightDrawerTopBar>
|
||||
<TopBarWrapper>
|
||||
<StyledTopBarWrapper>
|
||||
<RightDrawerTopBarCloseButton />
|
||||
{!isMobile && <RightDrawerTopBarExpandButton />}
|
||||
</TopBarWrapper>
|
||||
</StyledTopBarWrapper>
|
||||
<ActivityActionBar activityId={activityId ?? ''} />
|
||||
</StyledRightDrawerTopBar>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user