From 09782939d176447a4d71a208fa5bba6331737b21 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 30 May 2024 19:04:54 -0400 Subject: [PATCH] Update icon for drafts --- app/actions/definitions/navigation.tsx | 4 ++-- app/components/Sidebar/App.tsx | 4 ++-- app/scenes/Drafts.tsx | 4 ++-- package.json | 2 +- yarn.lock | 8 ++++---- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/actions/definitions/navigation.tsx b/app/actions/definitions/navigation.tsx index 4874074f5..24c69d869 100644 --- a/app/actions/definitions/navigation.tsx +++ b/app/actions/definitions/navigation.tsx @@ -3,7 +3,6 @@ import { SearchIcon, ArchiveIcon, TrashIcon, - EditIcon, OpenIcon, SettingsIcon, KeyboardIcon, @@ -12,6 +11,7 @@ import { ProfileIcon, BrowserIcon, ShapesIcon, + DraftsIcon, } from "outline-icons"; import * as React from "react"; import { UrlHelper } from "@shared/utils/UrlHelper"; @@ -57,7 +57,7 @@ export const navigateToDrafts = createAction({ name: ({ t }) => t("Drafts"), analyticsName: "Navigate to drafts", section: NavigationSection, - icon: , + icon: , perform: () => history.push(draftsPath()), visible: ({ location }) => location.pathname !== draftsPath(), }); diff --git a/app/components/Sidebar/App.tsx b/app/components/Sidebar/App.tsx index 42e732e56..31809a7f2 100644 --- a/app/components/Sidebar/App.tsx +++ b/app/components/Sidebar/App.tsx @@ -1,5 +1,5 @@ import { observer } from "mobx-react"; -import { EditIcon, SearchIcon, HomeIcon, SidebarIcon } from "outline-icons"; +import { DraftsIcon, SearchIcon, HomeIcon, SidebarIcon } from "outline-icons"; import * as React from "react"; import { DndProvider } from "react-dnd"; import { HTML5Backend } from "react-dnd-html5-backend"; @@ -109,7 +109,7 @@ function AppSidebar() { {can.createDocument && ( } + icon={} label={ {t("Drafts")} diff --git a/app/scenes/Drafts.tsx b/app/scenes/Drafts.tsx index 89b3f506d..fe2df47e6 100644 --- a/app/scenes/Drafts.tsx +++ b/app/scenes/Drafts.tsx @@ -1,5 +1,5 @@ import { observer } from "mobx-react"; -import { EditIcon } from "outline-icons"; +import { DraftsIcon } from "outline-icons"; import queryString from "query-string"; import * as React from "react"; import { useTranslation } from "react-i18next"; @@ -51,7 +51,7 @@ function Drafts() { return ( } + icon={} title={t("Drafts")} actions={ <> diff --git a/package.json b/package.json index cc34c83e6..1e90ef051 100644 --- a/package.json +++ b/package.json @@ -157,7 +157,7 @@ "node-fetch": "2.7.0", "nodemailer": "^6.9.9", "octokit": "^3.1.2", - "outline-icons": "^3.2.1", + "outline-icons": "^3.4.0", "oy-vey": "^0.12.1", "passport": "^0.7.0", "passport-google-oauth2": "^0.2.0", diff --git a/yarn.lock b/yarn.lock index ccd29d66f..140d3671f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11785,10 +11785,10 @@ os-tmpdir@~1.0.2: resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==" -outline-icons@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/outline-icons/-/outline-icons-3.2.1.tgz#bb52105fef0912459add9bb0445f9265f5317857" - integrity sha512-8zl3yPEmkHHns14sXgjmE6/6NtZqxgxTl+EKSZnnAoSJo331BFDpJDAq2pp/g8NZf6UIgyd61ka5cDvYyzFd2w== +outline-icons@^3.4.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/outline-icons/-/outline-icons-3.4.0.tgz#d67590046b242ace840d2d238a5557010b9aa179" + integrity sha512-DtYs1LDdgqftkeOjozVhRWJYIGT82ZHNWYPi6aNbfdN1XK8lU9ewXgSZ3PD9GvR9z7xKO2Oy6Gm80O29bUSFBw== oy-vey@^0.12.1: version "0.12.1"