11import Animations from '@assets/animations/animations'
2- import Btn from '@components/Button '
2+ import { ReloadIcon } from '@assets/icons/icons '
33import Check from '@components/Check'
44import { Gap12 } from '@components/Gap'
55import { Lottie } from '@components/Lottie'
@@ -10,11 +10,12 @@ import SettText from '@components/Settings/SettText'
1010import SettWrapper from '@components/Settings/SettWrapper'
1111import { Txt } from '@components/Text'
1212import Clipboard from '@react-native-clipboard/clipboard'
13+ import { Colors } from '@utils/colors'
1314import { W } from '@utils/dimensions'
14- import { Medium } from '@utils/fonts'
15+ import { Medium , SemiBold } from '@utils/fonts'
1516import type { NavProp } from '@utils/types'
1617import React , { memo , useCallback , useEffect , useState } from 'react'
17- import { ToastAndroid , TouchableOpacity } from 'react-native'
18+ import { ToastAndroid , TouchableOpacity , View } from 'react-native'
1819
1920const MAX = 50
2021const MIN = 4
@@ -83,26 +84,27 @@ export default function RandomPassword({ navigation }: NavProp) {
8384 </ SettGroup >
8485 < SettGroup >
8586 { generatedPassword ? (
86- < TouchableOpacity
87- activeOpacity = { 0.7 }
88- onPress = { ( ) => {
89- Clipboard . setString ( generatedPassword )
90- ToastAndroid . show ( 'Password Copied' , ToastAndroid . SHORT )
91- } }
92- >
93- < Medium className = 'px-5 py-3 text-xs text-accent' numberOfLines = { 1 } >
94- { generatedPassword }
95- </ Medium >
96- </ TouchableOpacity >
87+ < View className = 'flex-row justify-between px-5 py-3' >
88+ < TouchableOpacity
89+ activeOpacity = { 0.7 }
90+ onPress = { ( ) => {
91+ Clipboard . setString ( generatedPassword )
92+ ToastAndroid . show ( 'Password Copied' , ToastAndroid . SHORT )
93+ } }
94+ >
95+ < SemiBold className = 'text-xs text-accent' numberOfLines = { 1 } >
96+ { generatedPassword }
97+ </ SemiBold >
98+ </ TouchableOpacity >
99+ < TouchableOpacity onPress = { generatePassword } >
100+ < ReloadIcon height = { 22 } width = { 22 } color = { Colors . accent } />
101+ </ TouchableOpacity >
102+ </ View >
97103 ) : (
98- < Medium className = 'px-5 py-3 text-xs text-red-500' > Please select at least one of the above options.</ Medium >
104+ < Medium className = 'px-5 py-3 text-xs text-red-500' > Please select at least one of the options above .</ Medium >
99105 ) }
100106 </ SettGroup >
101107 < SettText className = 'text-center' > Tap to copy the password</ SettText >
102-
103- < SettGroup className = 'px-5 py-5' >
104- < Btn title = 'Generate Password' onPress = { generatePassword } />
105- </ SettGroup >
106108 </ Gap12 >
107109 </ SettWrapper >
108110 )
0 commit comments