You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
500 B

import React, { Component } from 'react';
import ChatList from './ChatList/ChatList';
import Location from './Location/Location';
import Info from './Info/Info';
import './Body.scss';
export default class Body extends Component {
render(){
return (
<div className="body d-flex">
{this.props.tabBar === 'chat' ? <ChatList /> : null}
{this.props.tabBar === 'location' ? <Location /> : null}
{this.props.tabBar === 'info' ? <Info /> : null}
</div>
);
}
}