-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from dhis2/fix/transfer-right-header
feat(transfer): add rightHeader (TECH-394)
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react' | ||
import propTypes from '@dhis2/prop-types' | ||
|
||
import { spacers } from '@dhis2/ui-constants' | ||
|
||
import { borderColor } from './common/index.js' | ||
|
||
export const RightHeader = ({ children, dataTest }) => ( | ||
<div data-test={dataTest}> | ||
{children} | ||
|
||
<style jsx>{` | ||
div { | ||
border-bottom: 1px solid ${borderColor}; | ||
flex-grow: 0; | ||
padding: 0 ${spacers.dp8}; | ||
} | ||
`}</style> | ||
</div> | ||
) | ||
|
||
RightHeader.propTypes = { | ||
children: propTypes.node, | ||
dataTest: propTypes.string, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters