mirror of
https://github.com/SrIzan10/lofi.git
synced 2026-06-06 00:56:53 +00:00
chore: remove feedback page
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
import MusicPlayer from '@/components/app/now-playing.svelte';
|
||||
import Sounds from '@/components/app/atmospheres.svelte';
|
||||
import StationDropdown from '@/components/app/station-dropdown.svelte';
|
||||
import Feedback from '@/components/app/feedback.svelte';
|
||||
</script>
|
||||
|
||||
<div
|
||||
@@ -17,7 +16,6 @@
|
||||
<StationDropdown />
|
||||
<BgDropdown />
|
||||
<Sounds />
|
||||
<Feedback />
|
||||
<Disclaimer />
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,38 +0,0 @@
|
||||
<script lang="ts">
|
||||
import * as Dialog from '$lib/components/ui/dialog/index.js';
|
||||
import MessageSquare from '@lucide/svelte/icons/message-square';
|
||||
import { Button } from '../ui/button';
|
||||
import { toast } from 'svelte-sonner';
|
||||
let feedback = $state('');
|
||||
let open = $state(false);
|
||||
</script>
|
||||
|
||||
<Dialog.Root bind:open>
|
||||
<Dialog.Trigger><Button size="icon"><MessageSquare /></Button></Dialog.Trigger>
|
||||
<Dialog.Content>
|
||||
<Dialog.Header>
|
||||
<Dialog.Title>Send Feedback</Dialog.Title>
|
||||
</Dialog.Header>
|
||||
<p>
|
||||
Have suggestions or found a bug? Let me know!
|
||||
</p>
|
||||
<form class="mt-4 space-y-4" onsubmit={(e) => {
|
||||
e.preventDefault();
|
||||
fetch('https://cors.notesnook.com/https://echospace.dev/api/feedback/cma9juarn0000m40sko0qqt2t', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
message: feedback,
|
||||
})
|
||||
}).then(() => {
|
||||
open = false;
|
||||
feedback = '';
|
||||
toast('Thanks for your feedback!')
|
||||
})
|
||||
}}>
|
||||
<div class="grid w-full items-center gap-1.5">
|
||||
<textarea id="feedback" class="p-2 rounded-md bg-white/10 border border-white/20" rows="4" bind:value={feedback}></textarea>
|
||||
</div>
|
||||
<Button type="submit">Submit</Button>
|
||||
</form>
|
||||
</Dialog.Content>
|
||||
</Dialog.Root>
|
||||
Reference in New Issue
Block a user