mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 06:25:45 +01:00
21 lines
377 B
JavaScript
21 lines
377 B
JavaScript
//@flow
|
|
import React from "react";
|
|
import Button, { type ButtonProps } from "./Button";
|
|
|
|
class SubmitButton extends React.Component<ButtonProps> {
|
|
render() {
|
|
return (
|
|
<Button
|
|
type="submit"
|
|
color="primary"
|
|
{...this.props}
|
|
action={() => {
|
|
window.scrollTo(0, 0);
|
|
}}
|
|
/>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default SubmitButton;
|