client/src/components/SlateEditor/BlockButton.js
author ymh <ymh.work@gmail.com>
Tue, 18 Dec 2018 02:27:22 +0100
changeset 199 c78d579f4b55
parent 173 0e6703cd0968
permissions -rw-r--r--
Correct the registration screen. First version of a password reset screen.

import React from 'react';
import { withNamespaces } from 'react-i18next';

export default withNamespaces("")(({icon, isActive, onMouseDown, t}) => (
  <span className={"button sticky-top" + ((!isActive)?" text-primary":" text-dark")} onMouseDown={onMouseDown} data-active={isActive} title={t("common."+icon)} >
    <span className="material-icons">{icon}</span>
  </span>
));