mirror of
https://github.com/mitchell/mjfs.us.git
synced 2025-12-19 13:47:22 +00:00
Swapped Proptypes for Flow; setup new eslint, standard, prettier, and flow analyzing system; version bump
This commit is contained in:
parent
7a52daf79b
commit
59426d4cc2
13 changed files with 835 additions and 99 deletions
|
|
@ -1,9 +1,14 @@
|
|||
// @flow
|
||||
import React from "react"
|
||||
import PropTypes from "prop-types"
|
||||
|
||||
import "./index.css"
|
||||
|
||||
class ClearButton extends React.PureComponent {
|
||||
type Props = {
|
||||
href: string,
|
||||
children: string
|
||||
}
|
||||
|
||||
class ClearButton extends React.PureComponent<Props> {
|
||||
render() {
|
||||
return (
|
||||
<a className="clear-button" href={this.props.href}>
|
||||
|
|
@ -13,9 +18,4 @@ class ClearButton extends React.PureComponent {
|
|||
}
|
||||
}
|
||||
|
||||
ClearButton.propTypes = {
|
||||
href: PropTypes.string,
|
||||
children: PropTypes.string
|
||||
}
|
||||
|
||||
export default ClearButton
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
// @flow
|
||||
import React from "react"
|
||||
|
||||
import SmallText from "../SmallText"
|
||||
|
||||
import "./index.css"
|
||||
|
||||
class Header extends React.PureComponent {
|
||||
type Props = {}
|
||||
|
||||
class Header extends React.PureComponent<Props> {
|
||||
render() {
|
||||
return (
|
||||
<div className="header-container">
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// @flow
|
||||
import React from "react"
|
||||
import ResponsiveMenu from "react-responsive-navbar"
|
||||
import { NavLink } from "react-router-dom"
|
||||
|
|
@ -6,7 +7,9 @@ import faBars from "@fortawesome/fontawesome-free-solid/faBars"
|
|||
|
||||
import "./index.css"
|
||||
|
||||
class Navbar extends React.Component {
|
||||
type Props = {}
|
||||
|
||||
class Navbar extends React.Component<Props> {
|
||||
render() {
|
||||
return (
|
||||
<ResponsiveMenu
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
// @flow
|
||||
import React from "react"
|
||||
import PropTypes from "prop-types"
|
||||
|
||||
import "./index.css"
|
||||
|
||||
class SmallText extends React.PureComponent {
|
||||
type Props = {
|
||||
children: string
|
||||
}
|
||||
|
||||
class SmallText extends React.PureComponent<Props> {
|
||||
render() {
|
||||
return <div className="small-text">{this.props.children}</div>
|
||||
}
|
||||
}
|
||||
|
||||
SmallText.propTypes = {
|
||||
children: PropTypes.string
|
||||
}
|
||||
|
||||
export default SmallText
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue