mirror of
https://github.com/franjsco/tick3t
synced 2024-12-27 09:53:37 +01:00
refactor: Logo component
This commit is contained in:
parent
6df8d5e086
commit
e5ff4d781c
@ -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;
|
Loading…
Reference in New Issue
Block a user