This commit is contained in:
@@ -9,10 +9,12 @@ export default function SettingsForm({
|
||||
defaultRestaurantName,
|
||||
defaultLocation,
|
||||
defaultLogoUrl,
|
||||
defaultGoogleReviewUrl,
|
||||
}: {
|
||||
defaultRestaurantName: string
|
||||
defaultLocation: string
|
||||
defaultLogoUrl: string
|
||||
defaultGoogleReviewUrl?: string
|
||||
}) {
|
||||
const [state, action, isPending] = useActionState(saveSettings, undefined)
|
||||
const [logoUrl, setLogoUrl] = useState(defaultLogoUrl)
|
||||
@@ -146,6 +148,21 @@ export default function SettingsForm({
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Google Review Url */}
|
||||
<div>
|
||||
<label className="block text-sm font-medium text-gray-700 mb-1">
|
||||
Google Yorum Linki
|
||||
</label>
|
||||
<input
|
||||
type="url"
|
||||
name="google_review_url"
|
||||
defaultValue={defaultGoogleReviewUrl}
|
||||
placeholder="https://g.page/r/..."
|
||||
className="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none transition-colors"
|
||||
/>
|
||||
<p className="text-xs text-gray-500 mt-1">Eğer buraya link eklerseniz site açılışında ziyaretçilere yorum yapmaları için popup gösterilir.</p>
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
disabled={isPending || uploading}
|
||||
|
||||
Reference in New Issue
Block a user