From 92f3166eb16e1d38f538dddebbaf28d38c315644 Mon Sep 17 00:00:00 2001 From: log101 Date: Sat, 27 Jan 2024 18:23:27 +0300 Subject: [PATCH] feat: disable button on submit --- src/components/LockedContent.tsx | 12 +++++----- src/pages/[id].astro | 19 ++++++++------- src/pages/{create.astro => index.astro} | 31 +++++++++++++++++++------ 3 files changed, 40 insertions(+), 22 deletions(-) rename src/pages/{create.astro => index.astro} (84%) diff --git a/src/components/LockedContent.tsx b/src/components/LockedContent.tsx index 0367776..60145a2 100644 --- a/src/components/LockedContent.tsx +++ b/src/components/LockedContent.tsx @@ -59,8 +59,8 @@ const LocationButton = ({ imageUrl = "#" }: { imageUrl?: string }) => {
-
- @@ -73,8 +73,8 @@ const LocationButton = ({ imageUrl = "#" }: { imageUrl?: string }) => { ) : (
-
- @@ -87,8 +87,8 @@ const LocationButton = ({ imageUrl = "#" }: { imageUrl?: string }) => { +

Fotoğrafın kilidi şu ana dek 2 kez açıldı diff --git a/src/pages/create.astro b/src/pages/index.astro similarity index 84% rename from src/pages/create.astro rename to src/pages/index.astro index 52a2894..3aecd99 100644 --- a/src/pages/create.astro +++ b/src/pages/index.astro @@ -8,6 +8,7 @@ import { Button } from '@/components/ui/button'; import '../styles/locked-page.css'; import { Input } from '@/components/ui/input'; import { Textarea } from '@/components/ui/textarea'; +import { ReloadIcon } from '@radix-ui/react-icons'; --- @@ -95,7 +96,16 @@ import { Textarea } from '@/components/ui/textarea';

- @@ -104,21 +114,28 @@ import { Textarea } from '@/components/ui/textarea';