feat: Study List Header (#1498)
* Initial code for header * Basic implementation for the header * Updating icons * Fix conflicts after latest changes on base branch * Smnall refactor on header * Small text-size change * Remove comment * Remove link from OHIF logo * Fix cog/settings icon
This commit is contained in:
1 parent
dbd0f74bea
commit
a738990675
3 files changed
+50
-7
No files matched your search
@@ -1,10 +1,46 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { withTranslation } from 'react-i18next';
|
||||
|
||||
/**
|
||||
* THIS FILE LOCATION IS TEMPORARY AND SHOULD NOT BE PLACED HERE
|
||||
*/
|
||||
const Header = () => {
|
||||
return <div>{`<- HEADER CONTENT ->`}</div>;
|
||||
import { IconButton, Icon } from '@ohif/ui';
|
||||
|
||||
import OHIFLogo from './OHIFLogo.js';
|
||||
|
||||
function Header({ appLogo = OHIFLogo(), children, t }) {
|
||||
const showSettingsDropdown = () => {
|
||||
// TODO: Update once dropdown component is created
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="bg-custom-navy flex flex-row justify-between p-2 text-white">
|
||||
<div className="flex items-center">
|
||||
<div>{appLogo}</div>
|
||||
<div>{children}</div>
|
||||
</div>
|
||||
<div className="flex items-center">
|
||||
<span className="mr-3 text-custom-grayLight text-lg">
|
||||
{t('FOR INVESTIGATIONAL USE ONLY')}
|
||||
</span>
|
||||
<IconButton
|
||||
variant="text"
|
||||
color="inherit"
|
||||
className="text-custom-blueBright"
|
||||
onClick={showSettingsDropdown}
|
||||
>
|
||||
<React.Fragment>
|
||||
<Icon name="settings" />
|
||||
<Icon name="chevron-down" />
|
||||
</React.Fragment>
|
||||
</IconButton>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Header.propTypes = {
|
||||
appLogo: PropTypes.node,
|
||||
children: PropTypes.node,
|
||||
t: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
export default Header;
|
||||
export default withTranslation(['Header'])(Header);
|
||||
@@ -0,0 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
function OHIFLogo() {
|
||||
return <React.Fragment>ICON - Open Health Imaging Foundation</React.Fragment>;
|
||||
}
|
||||
|
||||
export default OHIFLogo;
|
||||
Reference in new issue
Block a user