mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
move logo component to folder
This commit is contained in:
parent
070cec19df
commit
ff53a9c8ea
@ -13,9 +13,13 @@ class TowerLogo extends Component {
|
||||
}
|
||||
|
||||
onClick = () => {
|
||||
if (!this.props.onClick) return;
|
||||
|
||||
const { history } = this.props;
|
||||
|
||||
history.push('/');
|
||||
|
||||
this.props.onClick();
|
||||
};
|
||||
|
||||
onHover = () => {
|
||||
@ -29,7 +33,7 @@ class TowerLogo extends Component {
|
||||
|
||||
let src = TowerLogoHeader;
|
||||
|
||||
if (hover) {
|
||||
if (hover && this.props.onClick) {
|
||||
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 |
Loading…
x
Reference in New Issue
Block a user