Skip to content
Snippets Groups Projects
Commit 69543c70 authored by Felix Nodelijk's avatar Felix Nodelijk
Browse files

Now displays the name of the statistic that we want to render (showing that the skeleton works)

parent 232f2848
Branches
No related tags found
No related merge requests found
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
pointer-events: none; pointer-events: none;
} }
.Statistic-show {
animation: App-logo-spin infinite 20s linear;
}
.App-header { .App-header {
background-color: #282c34; background-color: #282c34;
min-height: 100vh; min-height: 100vh;
...@@ -30,3 +34,12 @@ ...@@ -30,3 +34,12 @@
transform: rotate(360deg); transform: rotate(360deg);
} }
} }
@keyframes Statistic-show-move {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
...@@ -30,15 +30,21 @@ export default class Statview extends PureComponent { ...@@ -30,15 +30,21 @@ export default class Statview extends PureComponent {
componentDidMount() { componentDidMount() {
// fetch the statistic from database // fetch the statistic from database
// Attach statistic // Attach statistic to D3
// // (and then render this in the render function)
console.log(this.props.statistic); console.log(this.props.statistic);
} }
componentWillUnmount() {
// Clear statistic (MIGHT NOT be necessary, might be done when component is replaced)
}
render() { render() {
return ( return (
<div> <div>
<div style={styles} onClick={this.props.onClick} /> <div style={styles} onClick={this.props.onClick} />
<div style={statStyle} /> <div style={statStyle}>
<h1>{this.props.statistic}</h1>
</div>
</div> </div>
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment