Skip to content

Commit fa4940f

Browse files
committed
Change "deploy" to "publish", correct spelling mistake
1 parent b629a1a commit fa4940f

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

builder-frontend/src/components/project/Publish.tsx

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,23 @@ import { publishScreener } from "../../api/screener";
55
export default function Publish({ project, refetchProject }) {
66
const [isLoading, setIsLoading] = createSignal(false);
77

8-
const screenerName = () => { return project()?.screenerName };
9-
const isPublished = () => { return project()?.publishedScreenerId !== null };
10-
const lastPublishDate = () => { return project()?.lastPublishDate };
8+
const screenerName = () => {
9+
return project()?.screenerName;
10+
};
11+
const isPublished = () => {
12+
return project()?.publishedScreenerId !== null;
13+
};
14+
const lastPublishDate = () => {
15+
return project()?.lastPublishDate;
16+
};
1117
const screenerUrl = () => {
12-
return window.location.protocol + "//" +window.location.host + "/screener/" + project()?.publishedScreenerId;
18+
return (
19+
window.location.protocol +
20+
"//" +
21+
window.location.host +
22+
"/screener/" +
23+
project()?.publishedScreenerId
24+
);
1325
};
1426

1527
const { projectId } = useParams();
@@ -47,7 +59,7 @@ export default function Publish({ project, refetchProject }) {
4759
{screenerUrl()}
4860
</a>
4961
) : (
50-
<a>Deploy screener to create public url.</a>
62+
<a>Publish screener to create public url.</a>
5163
)}
5264
</div>
5365
<div class="flex gap-4">
@@ -65,12 +77,14 @@ export default function Publish({ project, refetchProject }) {
6577
class="w-80 bg-gray-800 font-bold text-gray-50 rounded px-4 py-2 hover:bg-gray-700 disabled:opacity-50"
6678
disabled={isLoading()}
6779
>
68-
Deploy Screener
80+
Publish Screener
6981
</button>
7082
{lastPublishDate() ? (
71-
<div>Deploy current working version to your public screener</div>
83+
<div>Publish current working version to your public screener</div>
7284
) : (
73-
<div>Click to make your screener availble through a public URL</div>
85+
<div>
86+
Click to make your screener available through a public URL
87+
</div>
7488
)}
7589
</div>
7690
</div>

0 commit comments

Comments
 (0)