Update src/components/deploy-button/deploy-button.tsx
Browse files
src/components/deploy-button/deploy-button.tsx
CHANGED
@@ -104,6 +104,18 @@ function DeployButton({
|
|
104 |
</p>
|
105 |
</>
|
106 |
)}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
<div
|
108 |
className={classNames(
|
109 |
"h-screen w-screen bg-black/20 fixed left-0 top-0 z-10",
|
@@ -193,4 +205,4 @@ function DeployButton({
|
|
193 |
);
|
194 |
}
|
195 |
|
196 |
-
export default DeployButton;
|
|
|
104 |
</p>
|
105 |
</>
|
106 |
)}
|
107 |
+
<button
|
108 |
+
className={classNames(
|
109 |
+
"relative cursor-pointer flex-none flex items-center justify-center rounded-md text-xs lg:text-sm font-semibold leading-5 lg:leading-6 py-1.5 px-5 hover:bg-pink-400 text-white shadow-sm dark:shadow-highlight/20",
|
110 |
+
{
|
111 |
+
"bg-pink-400": open,
|
112 |
+
"bg-pink-500": !open,
|
113 |
+
}
|
114 |
+
)}
|
115 |
+
onClick={() => setOpen(!open)}
|
116 |
+
>
|
117 |
+
{path ? "Update Space" : "Deploy to Space"}
|
118 |
+
</button>
|
119 |
<div
|
120 |
className={classNames(
|
121 |
"h-screen w-screen bg-black/20 fixed left-0 top-0 z-10",
|
|
|
205 |
);
|
206 |
}
|
207 |
|
208 |
+
export default DeployButton;
|