mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-05 18:26:45 -05:00
38 lines
760 B
JavaScript
38 lines
760 B
JavaScript
import React from "react";
|
|
import styles from "./styles.module.css";
|
|
class Weather extends React.Component {
|
|
constructor(props) {
|
|
super(props);
|
|
this.state = {
|
|
show: true,
|
|
|
|
};
|
|
this.props = {
|
|
name : '',
|
|
temperature : '',
|
|
temperatureUnit : '',
|
|
detailedForecast : '',
|
|
}
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<div className="card">
|
|
<span
|
|
className="close"
|
|
onClick={this.props.dataclick}
|
|
datatitle={this.props.title}
|
|
>×
|
|
</span>
|
|
|
|
<p>{this.props.name}</p>
|
|
<p>{this.props.temperature}</p>
|
|
<p>{this.props.temperatureUnit}</p>
|
|
<p>{this.props.detailedForecast}</p>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
export default Weather; |