feat( S&P ): add branch name to details.

This commit is contained in:
elforjani13
2022-03-02 19:07:09 +02:00
parent e46609e3f1
commit 7f4ee26979
10 changed files with 106 additions and 10 deletions

View File

@@ -34,7 +34,7 @@ function DrawerHeaderContent(props) {
<Icon icon={icon} iconSize={Icon.SIZE_LARGE} />
<H4>
{title}
<Subtitle>{subTitle}</Subtitle>
<SubTitle>{subTitle}</SubTitle>
</H4>
<Button
@@ -50,7 +50,19 @@ function DrawerHeaderContent(props) {
export default compose(withDrawerActions)(DrawerHeaderContent);
const Subtitle = styled.div`
/**
* SubTitle Drawer header.
* @returns {React.JSX}
*/
function SubTitle({ children }) {
if (children == null) {
return null;
}
return <SubTitleHead>{children}</SubTitleHead>;
}
const SubTitleHead = styled.div`
color: #666;
font-size: 12px;
font-weight: 400;