mirror of
https://github.com/ansible/awx.git
synced 2026-02-17 11:10:03 -03:30
move logo component to folder
This commit is contained in:
@@ -13,9 +13,13 @@ class TowerLogo extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onClick = () => {
|
onClick = () => {
|
||||||
|
if (!this.props.onClick) return;
|
||||||
|
|
||||||
const { history } = this.props;
|
const { history } = this.props;
|
||||||
|
|
||||||
history.push('/');
|
history.push('/');
|
||||||
|
|
||||||
|
this.props.onClick();
|
||||||
};
|
};
|
||||||
|
|
||||||
onHover = () => {
|
onHover = () => {
|
||||||
@@ -29,7 +33,7 @@ class TowerLogo extends Component {
|
|||||||
|
|
||||||
let src = TowerLogoHeader;
|
let src = TowerLogoHeader;
|
||||||
|
|
||||||
if (hover) {
|
if (hover && this.props.onClick) {
|
||||||
src = TowerLogoHeaderHover;
|
src = TowerLogoHeaderHover;
|
||||||
}
|
}
|
||||||
|
|
||||||
3
src/components/TowerLogo/index.js
Normal file
3
src/components/TowerLogo/index.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
import TowerLogo from './TowerLogo';
|
||||||
|
|
||||||
|
export default TowerLogo;
|
||||||
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Reference in New Issue
Block a user