Sfoglia il codice sorgente

Button 包裹 Link

visuddhinanda 2 anni fa
parent
commit
7871c32e62
1 ha cambiato i file con 13 aggiunte e 15 eliminazioni
  1. 13 15
      dashboard/src/components/auth/ToStudio.tsx

+ 13 - 15
dashboard/src/components/auth/ToStudio.tsx

@@ -12,22 +12,20 @@ const ToStudioWidget = () => {
 
   if (typeof user !== "undefined") {
     return (
-      <>
-        <Link to={`/studio/${user.realName}/home`}>
-          <Button
-            type="primary"
-            style={{
-              paddingLeft: 18,
-              paddingRight: 18,
-              backgroundColor: "#52974e",
-            }}
-          >
-            {intl.formatMessage({
-              id: "columns.studio.title",
-            })}
-          </Button>
+      <Button
+        type="primary"
+        style={{
+          paddingLeft: 18,
+          paddingRight: 18,
+          backgroundColor: "#52974e",
+        }}
+      >
+        <Link to={`/studio/${user.realName}/home`} target="_blank">
+          {intl.formatMessage({
+            id: "columns.studio.title",
+          })}
         </Link>
-      </>
+      </Button>
     );
   } else {
     return <></>;