Skip to content

Commit d904f81

Browse files
committed
fix(ui): add SupportFooter to InviteLayout, remove duplicates from unsubscribe page
1 parent 8255763 commit d904f81

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

apps/sim/app/invite/components/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use client'
22

3+
import { SupportFooter } from '@/app/(auth)/components/support-footer'
34
import Navbar from '@/app/(home)/components/navbar/navbar'
45

56
interface InviteLayoutProps {
@@ -17,6 +18,7 @@ export default function InviteLayout({ children }: InviteLayoutProps) {
1718
<div className='flex flex-col items-center justify-center'>{children}</div>
1819
</div>
1920
</main>
21+
<SupportFooter position='absolute' />
2022
</div>
2123
)
2224
}

apps/sim/app/unsubscribe/unsubscribe.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { Suspense, useEffect, useState } from 'react'
44
import { Loader2 } from 'lucide-react'
55
import { useSearchParams } from 'next/navigation'
66
import { BrandedButton } from '@/app/(auth)/components/branded-button'
7-
import { SupportFooter } from '@/app/(auth)/components/support-footer'
87
import { InviteLayout } from '@/app/invite/components'
98

109
interface UnsubscribeData {
@@ -128,7 +127,6 @@ function UnsubscribeContent() {
128127
<div className={'mt-8 flex w-full items-center justify-center py-8'}>
129128
<Loader2 className='h-8 w-8 animate-spin text-[#999]' />
130129
</div>
131-
<SupportFooter position='absolute' />
132130
</InviteLayout>
133131
)
134132
}
@@ -146,8 +144,6 @@ function UnsubscribeContent() {
146144
<div className={'mt-8 w-full max-w-[410px] space-y-3'}>
147145
<BrandedButton onClick={() => window.history.back()}>Go Back</BrandedButton>
148146
</div>
149-
150-
<SupportFooter position='absolute' />
151147
</InviteLayout>
152148
)
153149
}
@@ -168,8 +164,6 @@ function UnsubscribeContent() {
168164
<div className={'mt-8 w-full max-w-[410px] space-y-3'}>
169165
<BrandedButton onClick={() => window.close()}>Close</BrandedButton>
170166
</div>
171-
172-
<SupportFooter position='absolute' />
173167
</InviteLayout>
174168
)
175169
}
@@ -190,8 +184,6 @@ function UnsubscribeContent() {
190184
<div className={'mt-8 w-full max-w-[410px] space-y-3'}>
191185
<BrandedButton onClick={() => window.close()}>Close</BrandedButton>
192186
</div>
193-
194-
<SupportFooter position='absolute' />
195187
</InviteLayout>
196188
)
197189
}
@@ -272,8 +264,6 @@ function UnsubscribeContent() {
272264
alerts.
273265
</p>
274266
</div>
275-
276-
<SupportFooter position='absolute' />
277267
</InviteLayout>
278268
)
279269
}
@@ -292,7 +282,6 @@ export default function Unsubscribe() {
292282
<div className={'mt-8 flex w-full items-center justify-center py-8'}>
293283
<Loader2 className='h-8 w-8 animate-spin text-[#999]' />
294284
</div>
295-
<SupportFooter position='absolute' />
296285
</InviteLayout>
297286
}
298287
>

0 commit comments

Comments
 (0)