Explorar o código

:fire: Edit button

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
558d681e19
Modificáronse 1 ficheiros con 0 adicións e 17 borrados
  1. 0 17
      dashboard/src/pages/library/article/show.tsx

+ 0 - 17
dashboard/src/pages/library/article/show.tsx

@@ -173,23 +173,6 @@ const Widget = () => {
               style={{ display: "flex", height: 44, alignItems: "center" }}
               key="right"
             >
-              {type === "article" && loadedArticleData ? (
-                <>
-                  <Button
-                    ghost
-                    onClick={(event) => {
-                      const url = `/studio/${loadedArticleData.studio?.realName}/article/edit/${loadedArticleData.uid}`;
-                      if (event.ctrlKey || event.metaKey) {
-                        window.open(fullUrl(url), "_blank");
-                      } else {
-                        navigate(url);
-                      }
-                    }}
-                  >
-                    Edit
-                  </Button>
-                </>
-              ) : undefined}
               <ShareButton
                 type={type as ArticleType}
                 book={searchParams.get("book")}