1
1
import { ArrowRightIcon } from "@bitcoin-design/bitcoin-icons-react/filled" ;
2
- import Button from "@components/Button" ;
3
2
import Loading from "@components/Loading" ;
4
3
import TransactionsTable from "@components/TransactionsTable" ;
5
4
import {
@@ -12,7 +11,9 @@ import relativeTime from "dayjs/plugin/relativeTime";
12
11
import { FC , useEffect , useState } from "react" ;
13
12
import { useTranslation } from "react-i18next" ;
14
13
import { useNavigate } from "react-router-dom" ;
14
+ import Alert from "~/app/components/Alert" ;
15
15
import BalanceBox from "~/app/components/BalanceBox" ;
16
+ import Button from "~/app/components/Button" ;
16
17
import Hyperlink from "~/app/components/Hyperlink" ;
17
18
import { IconLinkCard } from "~/app/components/IconLinkCard/IconLinkCard" ;
18
19
import SkeletonLoader from "~/app/components/SkeletonLoader" ;
@@ -116,7 +117,26 @@ const DefaultView: FC<Props> = (props) => {
116
117
{ props . renderPublisherWidget && ! ! props . lnDataFromCurrentTab ?. length && (
117
118
< PublisherLnData lnData = { props . lnDataFromCurrentTab [ 0 ] } />
118
119
) }
120
+
119
121
< div className = "p-4" >
122
+ { isBlockedUrl && (
123
+ < div className = "items-center dark:text-white text-sm mb-4" >
124
+ < Alert type = "info" >
125
+ < p className = "pb-2" >
126
+ { t ( "default_view.is_blocked_hint" , {
127
+ host : props . currentUrl ?. host ,
128
+ } ) }
129
+ </ p >
130
+ < Button
131
+ fullWidth
132
+ label = { t ( "actions.enable_now" ) }
133
+ direction = "column"
134
+ onClick = { ( ) => unblock ( ) }
135
+ />
136
+ </ Alert >
137
+ </ div >
138
+ ) }
139
+
120
140
< BalanceBox />
121
141
{ ( accountLoading || lightningAddress ) && (
122
142
< div className = "flex justify-center" >
@@ -163,22 +183,6 @@ const DefaultView: FC<Props> = (props) => {
163
183
</ HomeButton >
164
184
</ div >
165
185
166
- { isBlockedUrl && (
167
- < div className = "mb-2 items-center py-3 dark:text-white" >
168
- < p className = "py-1" >
169
- { t ( "default_view.is_blocked_hint" , {
170
- host : props . currentUrl ?. host ,
171
- } ) }
172
- </ p >
173
- < Button
174
- fullWidth
175
- label = { t ( "actions.enable_now" ) }
176
- direction = "column"
177
- onClick = { ( ) => unblock ( ) }
178
- />
179
- </ div >
180
- ) }
181
-
182
186
{ isLoading && (
183
187
< div className = "flex justify-center mt-4" >
184
188
< Loading />
@@ -187,7 +191,7 @@ const DefaultView: FC<Props> = (props) => {
187
191
188
192
{ ! isLoading && (
189
193
< div >
190
- < div className = "flex flex-col gap-2 md:gap-3" >
194
+ < div className = "flex flex-col mt-4 gap-2 md:gap-3" >
191
195
{ transactions . length == 0 && (
192
196
< IconLinkCard
193
197
title = { t ( "default_view.actions.get_started.title" ) }
0 commit comments