import { colors } from '@0xproject/react-shared'; import * as _ from 'lodash'; import * as React from 'react'; import { Link } from 'react-router-dom'; import { Container } from 'ts/components/ui/container'; import { Text } from 'ts/components/ui/text'; import { TutorialInfo } from 'ts/types'; export interface TutorialButtonProps { tutorialInfo: TutorialInfo; } export interface TutorialButtonState { isHovering: boolean; } export class TutorialButton extends React.Component { constructor(props: TutorialButtonProps) { super(props); this.state = { isHovering: false, }; } public render(): React.ReactNode { return (
{this.props.tutorialInfo.title} {this.props.tutorialInfo.description}
); } private _onHover(_event: React.FormEvent): void { this.setState({ isHovering: true, }); } private _onHoverOff(): void { this.setState({ isHovering: false, }); } }