tailwind #9

Manually merged
peperunas merged 157 commits from tailwind into master 2020-12-28 18:38:52 +00:00
Showing only changes of commit a7d888f00a - Show all commits

View File

@ -1,7 +1,7 @@
import React, {Component} from "react"
import Plot from "react-plotly.js"
import {NewTickData, socket} from '../';
import {NewTickMessage, socket} from '../';
type FirstConnectData = {
@ -53,7 +53,7 @@ class RPlot extends Component<{}, PlotState> {
})
})
socket.on("new_tick", (data: NewTickData) => {
socket.on("new_tick", (data: NewTickMessage) => {
const new_x = [...this.state.x, data.tick];
const new_y = [...this.state.y, data.price];