// @flow import React from 'react'; import { observable } from 'mobx'; import { observer } from 'mobx-react'; import styled from 'styled-components'; import { color } from 'styles/constants'; type Props = { id: string, name: ?string, secret: string, onDelete: Function, }; @observer class ApiKeyRow extends React.Component { props: Props; @observable disabled: boolean; onClick = () => { this.props.onDelete(this.props.id); this.disabled = true; }; render() { const { name, secret } = this.props; const { disabled } = this; return (
{secret}