1
1
'use client'
2
2
3
3
import Icon from '@/components/Global/Icon'
4
- import { Icon as IconComponent } from '@/components/Global/Icons/Icon'
5
4
import TransactionCard from '@/components/TransactionDetails/TransactionCard'
6
5
import { mapTransactionDataForDrawer } from '@/components/TransactionDetails/transactionTransformer'
7
6
import { BASE_URL } from '@/constants'
@@ -17,9 +16,7 @@ import EmptyState from '../Global/EmptyStates/EmptyState'
17
16
import { KycStatusItem } from '../Kyc/KycStatusItem'
18
17
import { isKycStatusItem , KycHistoryEntry } from '@/hooks/useKycFlow'
19
18
import { KYCStatus } from '@/utils'
20
- import { Button } from '../0_Bruddle'
21
19
import { useRouter } from 'next/navigation'
22
- import { PeanutGuyGIF } from '@/assets'
23
20
24
21
/**
25
22
* component to display a preview of the most recent transactions on the home page.
@@ -118,31 +115,6 @@ const HomeHistory = ({ isPublic = false, username }: { isPublic?: boolean; usern
118
115
)
119
116
} , [ combinedEntries ] )
120
117
121
- // Show only if it is a guest user
122
- if ( ! isPublic && ! isLoggedIn ) {
123
- return (
124
- < div className = "relative !mt-40 flex flex-col items-center justify-center" >
125
- < img src = { PeanutGuyGIF . src } className = "absolute -top-26 w-40" alt = "Peanut Guy" />
126
- < div className = "!mst-40 relative flex flex-col items-center justify-center space-y-4 rounded-sm border-2 border-black bg-white p-4" >
127
- < h2 className = "font-roboto text-xl font-extrabold" > Join Peanut!</ h2 >
128
- < p className = "text-center font-normal" >
129
- Send and receive payments in seconds with your own Peanut account.
130
- </ p >
131
-
132
- < Button
133
- variant = "purple"
134
- shadowSize = "4"
135
- className = "mt-1 flex w-full items-center justify-center gap-2 rounded-sm"
136
- onClick = { ( ) => router . push ( '/setup' ) }
137
- >
138
- < IconComponent size = { 16 } name = "user-plus" fill = "black" />
139
- < span className = "font-bold" > Create Account</ span >
140
- </ Button >
141
- </ div >
142
- </ div >
143
- )
144
- }
145
-
146
118
// show loading state
147
119
if ( isLoading ) {
148
120
return (
0 commit comments