Skip to content
Snippets Groups Projects
Commit fc5537fc authored by theraj's avatar theraj
Browse files

removed lazy load spotify data

parent 2e1b914e
No related branches found
No related tags found
No related merge requests found
import React, { Component, lazy } from 'react';
import React, { Component } from 'react';
import { Row, Col } from 'antd';
import Dropzone from '@imd/components/uielements/dropzone';
......@@ -21,8 +21,6 @@ import IntlMessages from '@imd/components/utility/intlMessages';
import TotalSongsByDayLine from './Components/TotalSongsByDayLine/TotalSongsByDayLine';
import UserData from './Data/StreamingHistory0.json';
const SpotifyRawData = lazy(() => import('./partialData'))
function callback(key) {}
export default class extends Component {
......@@ -105,7 +103,15 @@ export default class extends Component {
<Box>
<Tabs defaultActiveKey="1" onChange={callback}>
<TabPane tab="Raw Data" key="1">
<SpotifyRawData />
{UserData.map((song, idx) => (
<Col lg={6} md={12} sm={12} xs={24} style={colStyle}>
<Box>
<h1>{song.trackName}</h1>
<div>Artist: {song.artistName}</div>
<div>{song.endTime}</div>
</Box>
</Col>
))}
</TabPane>
<TabPane tab="Graphs" key="2">
<Row style={rowStyle} gutter={0} justify="start">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment