mirror of
https://github.com/outline/outline.git
synced 2026-12-01 09:22:14 +03:00
Use newDocumentUrl helper
This commit is contained in:
1 parent
8efd31f1d2
commit
e5eb134ae6
1 file changed
+2
-1
@@ -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>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user