Spaces:
Running
Running
rework load wording
Browse files
src/components/load-button/load-button.tsx
CHANGED
@@ -28,7 +28,7 @@ function LoadButton({
|
|
28 |
if (res.ok) {
|
29 |
if (data.html) {
|
30 |
setHtml(data.html);
|
31 |
-
toast.success("
|
32 |
}
|
33 |
if (data.isOwner) {
|
34 |
setPath(data.path);
|
@@ -58,7 +58,7 @@ function LoadButton({
|
|
58 |
className="underline hover:text-white cursor-pointer text-xs lg:text-sm text-gray-300"
|
59 |
onClick={() => setOpen(!open)}
|
60 |
>
|
61 |
-
Load
|
62 |
</p>
|
63 |
<div
|
64 |
className={classNames(
|
@@ -86,6 +86,9 @@ function LoadButton({
|
|
86 |
Load Project
|
87 |
</header>
|
88 |
<main className="px-4 pt-3 pb-4 space-y-3">
|
|
|
|
|
|
|
89 |
<label className="block">
|
90 |
<p className="text-gray-600 text-sm font-medium mb-1.5">
|
91 |
Space URL
|
@@ -119,7 +122,7 @@ function LoadButton({
|
|
119 |
className="relative rounded-full bg-black px-5 py-2 text-white font-semibold text-xs hover:bg-black/90 transition-all duration-100 disabled:bg-gray-300 disabled:text-gray-500 disabled:cursor-not-allowed disabled:hover:bg-gray-300"
|
120 |
onClick={loadSpace}
|
121 |
>
|
122 |
-
Load
|
123 |
{loading && <Loading />}
|
124 |
</button>
|
125 |
</div>
|
|
|
28 |
if (res.ok) {
|
29 |
if (data.html) {
|
30 |
setHtml(data.html);
|
31 |
+
toast.success("Space loaded successfully.");
|
32 |
}
|
33 |
if (data.isOwner) {
|
34 |
setPath(data.path);
|
|
|
58 |
className="underline hover:text-white cursor-pointer text-xs lg:text-sm text-gray-300"
|
59 |
onClick={() => setOpen(!open)}
|
60 |
>
|
61 |
+
Load Space
|
62 |
</p>
|
63 |
<div
|
64 |
className={classNames(
|
|
|
86 |
Load Project
|
87 |
</header>
|
88 |
<main className="px-4 pt-3 pb-4 space-y-3">
|
89 |
+
<p className="text-sm text-pink-600 bg-pink-100 rounded-md px-3 py-2">
|
90 |
+
Load an existing DeepSite Space to continue working on it.
|
91 |
+
</p>
|
92 |
<label className="block">
|
93 |
<p className="text-gray-600 text-sm font-medium mb-1.5">
|
94 |
Space URL
|
|
|
122 |
className="relative rounded-full bg-black px-5 py-2 text-white font-semibold text-xs hover:bg-black/90 transition-all duration-100 disabled:bg-gray-300 disabled:text-gray-500 disabled:cursor-not-allowed disabled:hover:bg-gray-300"
|
123 |
onClick={loadSpace}
|
124 |
>
|
125 |
+
Load Space
|
126 |
{loading && <Loading />}
|
127 |
</button>
|
128 |
</div>
|