Use newDocumentUrl helper

This commit is contained in:
Saumya Pandey committed 2021-08-27 01:44:51 +05:30
1 parent 8efd31f1d2
commit e5eb134ae6
1 file changed
+2 -1
+2 -1
View File
@@ -4,12 +4,13 @@ import * as React from "react";
import { useTranslation } from "react-i18next";
import { Link } from "react-router-dom";
import Button from "components/Button";
import { newDocumentUrl } from "utils/routeHelpers";
const NewDocumentButton = () => {
const { t } = useTranslation();
return (
<Button as={Link} to={"/doc/new"} icon={<PlusIcon />}>
<Button as={Link} to={newDocumentUrl()} icon={<PlusIcon />}>
{t("New draft doc")}
</Button>
);