1
0
mirror of https://github.com/franjsco/tick3t synced 2024-12-27 09:53:37 +01:00

refactor: Logo component

This commit is contained in:
Francesco Esposito 2019-07-31 15:54:55 +02:00
parent 6df8d5e086
commit e5ff4d781c

View File

@ -1,22 +1,17 @@
import React, { Component } from 'react';
import React from 'react';
class Logo extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
return (
<div>
<img
style={this.props.style}
src={this.props.src}
alt={this.props.alt}></img>
</div>
);
}
const Logo = (props) => {
return (
<div>
<img
style={props.style}
src={props.src}
alt={props.alt}>
</img>
</div>
);
}
export default Logo;