File tree Expand file tree Collapse file tree 2 files changed +11
-23
lines changed Expand file tree Collapse file tree 2 files changed +11
-23
lines changed Original file line number Diff line number Diff line change @@ -106,28 +106,16 @@ const Home = () => {
106
106
< div className = "flex justify-between items-center" >
107
107
< h1 className = "text-2xl font-bold text-custom-blue" > { t ( 'common.navItemCredentials' ) } </ h1 >
108
108
109
- < div className = 'flex gap-x-1' >
110
- { isSmallScreen && (
111
- < button
112
- className = "px-2 py-2 mb-2 text-white bg-custom-blue hover:bg-custom-blue-hover focus:ring-4 focus:outline-none focus:ring-custom-blue font-medium rounded-lg text-sm px-4 py-2 text-center dark:bg-custom-blue-hover dark:hover:bg-custom-blue-hover dark:focus:ring-custom-blue-hover"
113
- onClick = { openQRScanner } // Open the QR code scanner modal
114
- >
115
- < div className = "flex items-center" >
116
- < BsQrCodeScan size = { 20 } className = "text-white" />
117
- </ div >
118
- </ button >
119
- ) }
109
+ { isSmallScreen && (
120
110
< button
121
111
className = "px-2 py-2 mb-2 text-white bg-custom-blue hover:bg-custom-blue-hover focus:ring-4 focus:outline-none focus:ring-custom-blue font-medium rounded-lg text-sm px-4 py-2 text-center dark:bg-custom-blue-hover dark:hover:bg-custom-blue-hover dark:focus:ring-custom-blue-hover"
122
- onClick = { handleAddCredential }
112
+ onClick = { openQRScanner } // Open the QR code scanner modal
123
113
>
124
114
< div className = "flex items-center" >
125
- < BsPlusCircle size = { 20 } className = "text-white" />
126
- < span className = "hidden sm:inline" > { t ( 'common.navItemCredentials' ) } </ span >
115
+ < BsQrCodeScan size = { 20 } className = "text-white" />
127
116
</ div >
128
117
</ button >
129
- </ div >
130
-
118
+ ) }
131
119
132
120
</ div >
133
121
< hr className = "mb-2 border-t border-custom-blue/80" />
@@ -220,9 +208,9 @@ const Home = () => {
220
208
221
209
{ /* QR Code Scanner Modal */ }
222
210
{ isQRScannerOpen && (
223
- < QRCodeScanner
224
- onClose = { closeQRScanner }
225
- />
211
+ < QRCodeScanner
212
+ onClose = { closeQRScanner }
213
+ />
226
214
) }
227
215
228
216
{ /* Delete Credential Modal */ }
Original file line number Diff line number Diff line change 1
1
import React , { useState , useEffect } from 'react' ;
2
- import { BsQrCodeScan } from 'react-icons/bs'
2
+ import { BsQrCodeScan } from 'react-icons/bs'
3
3
import { useTranslation } from 'react-i18next' ;
4
4
5
5
import QRCodeScanner from '../../components/QRCodeScanner/QRCodeScanner' ; // Replace with the actual import path
@@ -172,9 +172,9 @@ const Verifiers = () => {
172
172
173
173
{ /* QR Code Scanner Modal */ }
174
174
{ isQRScannerOpen && (
175
- < QRCodeScanner
176
- onClose = { closeQRScanner }
177
- />
175
+ < QRCodeScanner
176
+ onClose = { closeQRScanner }
177
+ />
178
178
) }
179
179
</ >
180
180
) ;
You can’t perform that action at this time.
0 commit comments