Merge feedback and support dialogs

This commit is contained in:
Sebastien Castiel
2024-01-18 15:46:50 -05:00
parent 395c86666c
commit f9040f8bed
7 changed files with 316 additions and 362 deletions

View File

@@ -1,4 +1,8 @@
import { FeedbackButton } from '@/components/feedback-button/feedback-button'
import {
FeedbackButton,
FeedbackModal,
} from '@/components/feedback-button/feedback-button'
import { env } from '@/lib/env'
import { PropsWithChildren } from 'react'
export default function GroupsLayout({ children }: PropsWithChildren<{}>) {
@@ -7,7 +11,9 @@ export default function GroupsLayout({ children }: PropsWithChildren<{}>) {
<main className="flex-1 max-w-screen-md w-full mx-auto px-4 py-6 flex flex-col gap-6">
{children}
</main>
<FeedbackButton />
<FeedbackModal donationUrl={env.STRIPE_DONATION_LINK}>
<FeedbackButton />
</FeedbackModal>
</>
)
}