From de72df98282fdb5866fa487ce5e8591215a1c5ee Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Sun, 10 Apr 2022 15:54:51 -0700 Subject: [PATCH] Naming, update small screen layout --- .../templates/article/ArticleActionsMenu.tsx | 4 +- .../templates/article/EditLabelsControl.tsx | 28 +- .../templates/article/EditLabelsModal.tsx | 321 ------------------ .../web/pages/[username]/[slug]/index.tsx | 2 +- 4 files changed, 7 insertions(+), 348 deletions(-) delete mode 100644 packages/web/components/templates/article/EditLabelsModal.tsx diff --git a/packages/web/components/templates/article/ArticleActionsMenu.tsx b/packages/web/components/templates/article/ArticleActionsMenu.tsx index 42b8651a5..0f115e180 100644 --- a/packages/web/components/templates/article/ArticleActionsMenu.tsx +++ b/packages/web/components/templates/article/ArticleActionsMenu.tsx @@ -6,7 +6,7 @@ import { Button } from "../../elements/Button" import { Dropdown } from "../../elements/DropdownElements" import { Box, SpanBox } from "../../elements/LayoutPrimitives" import { styled, theme } from "../../tokens/stitches.config" -import { EditLabelsModal } from "./EditLabelsModal" +import { EditLabelsControl } from "./EditLabelsControl" import { ReaderSettings } from "./ReaderSettingsModal" export type ArticleActionsMenuLayout = 'horizontal' | 'vertical' @@ -89,7 +89,7 @@ export function ArticleActionsMenu(props: ArticleActionsMenuProps): JSX.Element } > - + )} - {/* Footer */} - - - Edit labels - - - ) -} \ No newline at end of file diff --git a/packages/web/pages/[username]/[slug]/index.tsx b/packages/web/pages/[username]/[slug]/index.tsx index f35f94e8a..0cc663a63 100644 --- a/packages/web/pages/[username]/[slug]/index.tsx +++ b/packages/web/pages/[username]/[slug]/index.tsx @@ -20,7 +20,7 @@ import { articleReadingProgressMutation } from '../../../lib/networking/mutation import { updateHighlightMutation } from '../../../lib/networking/mutations/updateHighlightMutation' import { userPersonalizationMutation } from '../../../lib/networking/mutations/userPersonalizationMutation' import Script from 'next/script' -import { EditLabelsModal } from '../../../components/templates/article/EditLabelsModal' +import { EditLabelsControl } from '../../../components/templates/article/EditLabelsControl' import { Label } from '../../../lib/networking/fragments/labelFragment' import { isVipUser } from '../../../lib/featureFlag' import { styled, theme } from '../../../components/tokens/stitches.config'