14 lines
327 B
TypeScript
14 lines
327 B
TypeScript
import React from 'react';
|
|
import { Button } from 'antd';
|
|
import { LABELS } from '../../constants';
|
|
import { useHistory } from 'react-router-dom';
|
|
|
|
export const BackButton = () => {
|
|
const history = useHistory();
|
|
return (
|
|
<Button type="text" onClick={history.goBack}>
|
|
{LABELS.GO_BACK_ACTION}
|
|
</Button>
|
|
);
|
|
};
|