Browse Source

redesign code component

Shahed nasser 1 year ago
parent
commit
40d3cc0a9d

+ 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{" "}