SettingsEditButton.tsx 328 B

12345678910111213141516
  1. import React from 'react';
  2. import { Link } from 'react-router-dom';
  3. interface Props {
  4. to: string;
  5. }
  6. const SettingsEditButton: React.FC<Props> = ({ to }) => (
  7. <Link to={to}>
  8. <button type="button" className="button is-small is-warning">
  9. Edit settings
  10. </button>
  11. </Link>
  12. );
  13. export default SettingsEditButton;