This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
// import { createBrowserHistory } from 'history'; | |
import Chats from './Chats'; | |
import Contacts from './Contacts'; | |
import 'bootstrap/dist/css/bootstrap.min.css'; | |
import './App.css'; | |
/* Error: Property 'path' is missing in type '{}' but required in type 'Readonly<Props>'. TS2741 | |
Error: Type 'Props' is not assignable to type 'string'.ts(2322) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
class StarIcon extends Component { | |
render() { | |
const {color, width, height} = this.props; | |
return ( | |
<svg className="star" width={width} height={height} fill={color} viewBox="0 0 200 200"> | |
<path d="M100,10 L150,140 20,50 180,50 50,140 Z" /> | |
</svg> |
NewerOlder