瀏覽代碼

redesign code component

Shahed nasser 2 年之前
父節點
當前提交
40d3cc0a9d
共有 1 個文件被更改,包括 11 次插入2 次删除
  1. 11 2
      src/admin/components/onboarding-flow/nextjs/products/product-detail.tsx

+ 11 - 2
src/admin/components/onboarding-flow/nextjs/products/product-detail.tsx

@@ -1,7 +1,7 @@
 import React from "react";
 import React from "react";
 import { useAdminProduct } from "medusa-react";
 import { useAdminProduct } from "medusa-react";
 import { StepContentProps } from "../../../../widgets/onboarding-flow/onboarding-flow";
 import { StepContentProps } from "../../../../widgets/onboarding-flow/onboarding-flow";
-import { Button, Text } from "@medusajs/ui";
+import { Button, Text, clx } from "@medusajs/ui";
 
 
 const ProductDetailNextjs = ({ onNext, isComplete, data }: StepContentProps) => {
 const ProductDetailNextjs = ({ onNext, isComplete, data }: StepContentProps) => {
   const { product, isLoading: productIsLoading } = useAdminProduct(data?.product_id)
   const { product, isLoading: productIsLoading } = useAdminProduct(data?.product_id)
@@ -9,7 +9,16 @@ const ProductDetailNextjs = ({ onNext, isComplete, data }: StepContentProps) =>
     <div>
     <div>
       <div className="flex flex-col gap-2">
       <div className="flex flex-col gap-2">
         <Text>On this page, you can view your product's details and edit them.</Text>
         <Text>On this page, you can view your product's details and edit them.</Text>
-        <Text>We’ve created a Next.js storefront for you in the {process.env.MEDUSA_ADMIN_ONBOARDING_NEXTJS_DIRECTORY} directory.</Text>
+        <Text>
+          We’ve created a Next.js storefront for you in the{" "}
+          <code className={clx(
+            "p-0 px-[6px] bg-ui-tag-neutral-bg border border-ui-tag-neutral-border",
+            "text-ui-tag-neutral-text leading-6 rounded-md"
+          )}>
+            {process.env.MEDUSA_ADMIN_ONBOARDING_NEXTJS_DIRECTORY}
+          </code>{" "}
+          directory.
+        </Text>
         <Text>
         <Text>
           Medusa and the Next.js storefront are separate projects. Medusa stands on its own and can work with any storefront you prefer. 
           Medusa and the Next.js storefront are separate projects. Medusa stands on its own and can work with any storefront you prefer. 
           However, the{" "}
           However, the{" "}