style: removed static 'app.plane.so' (#813)

This commit is contained in:
Dakshesh Jain 2023-04-13 18:28:23 +05:30 committed by GitHub
parent 657241c9c1
commit 6de94efc7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 4 deletions

View file

@ -238,13 +238,20 @@ const WorkspaceSettings: NextPage = () => {
register={register}
error={errors.name}
className="w-full"
value={`app.plane.so/${activeWorkspace.slug}`}
value={`${
typeof window !== "undefined" &&
window.location.origin.replace("http://", "").replace("https://", "")
}/${activeWorkspace.slug}`}
disabled
/>
<SecondaryButton
className="h-min"
onClick={() =>
copyTextToClipboard(`https://app.plane.so/${activeWorkspace.slug}`).then(() => {
copyTextToClipboard(
`${typeof window !== "undefined" && window.location.origin}/${
activeWorkspace.slug
}`
).then(() => {
setToastAlert({
type: "success",
title: "Link Copied!",