Skip to content

Commit 13ce0f5

Browse files
committed
update share modal components
1 parent f229d7f commit 13ce0f5

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

src/components/shareModal.tsx

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import 'filepond/dist/filepond.min.css';
3232
import 'filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css';
3333

3434
import { CustomLink } from "./settings/common";
35-
import isTauri from "@/utils/isTauri";
3635
import { t } from "i18next";
3736
import Link from "next/dist/client/link";
3837

@@ -239,8 +238,8 @@ export const ShareModal = ({
239238
className="absolute top-0 left-0 w-full h-full bg-violet-700 opacity-10 z-index-50"
240239
></div>
241240
<div className="h-screen overflow-auto opacity-95 backdrop-blur">
242-
<div className="mx-auto max-w-3xl py-16 text-text1">
243-
<div className="mt-16">
241+
<div className="mx-auto max-w-2xl py-16">
242+
<div>
244243
<TextButton
245244
className="rounded-b-none text-lg ml-4 px-8 shadow-sm"
246245
onClick={() => {
@@ -254,19 +253,12 @@ export const ShareModal = ({
254253
</TextButton>
255254

256255
<div className="bg-white flex-col justify-center p-7 rounded-xl">
257-
<div className="col-span-3 max-w-md rounded-xl mt-4 bg-white">
258-
<h1 className="text-lg">{t("Character Creator")}</h1>
259-
{ isTauri() && (
260-
<p className="text-sm mt-2">
261-
{t("Wrong place?")}
262-
{' '}
263-
<Link href="/" className="text-cyan-600 hover:text-cyan-700">{t('Go home')}</Link>
264-
</p>
265-
) }
266-
</div>
267-
268256
<div className="flex justify-center">
269257
<div>
258+
<div className="sm:col-span-3 max-w-md rounded-xl mt-4">
259+
<h1 className="text-lg">{t("Character Creator")}</h1>
260+
</div>
261+
270262
<div className="sm:col-span-3 max-w-md rounded-xl mt-4">
271263
<label className="block text-sm font-medium leading-6 text-gray-900">
272264
{t("Description")}
@@ -634,18 +626,12 @@ export const ShareModal = ({
634626
{' '}
635627
<Link
636628
href={`https://amica.arbius.ai/import/${sqid}`}
637-
target={isTauri() ? "_blank" : ''}
629+
target="_blank"
638630
className="text-cyan-600 hover:text-cyan-700"
639631
>
640632
https://amica.arbius.ai/import/{sqid}
641633
</Link>
642634
</p>
643-
644-
<button
645-
className="mt-6 inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-emerald-500 hover:bg-emerald-600 focus:outline-none disabled:opacity-50 disabled:hover:bg-emerald-500 disabled:cursor-not-allowed"
646-
onClick={onClickClose}>
647-
{t("Return Home")}
648-
</button>
649635
</div>
650636
)}
651637
</div>

0 commit comments

Comments
 (0)