Wrap text in pk dialog box

This commit is contained in:
IshaVenikar 2024-07-29 16:44:11 +05:30
parent e2e4f3b203
commit e9d4e22596
2 changed files with 6 additions and 7 deletions

View File

@ -50,12 +50,7 @@ const ShowPKDialog = () => {
</TouchableOpacity>
</View>
<View>
<Dialog
open={showPKDialog}
onClose={hideShowPKDialog}
PaperProps={{
style: { maxWidth: '40%' }
}}>
<Dialog open={showPKDialog} onClose={hideShowPKDialog}>
<DialogTitle>
{!privateKey ? (
<Typography>Show Private Key?</Typography>
@ -70,6 +65,10 @@ const ShowPKDialog = () => {
component="pre"
variant="body1"
style={styles.dataBoxData}
sx={{
wordWrap: 'break-word',
whiteSpace: 'initial',
}}
>
{privateKey}
</Typography>

View File

@ -8,7 +8,7 @@ export const DEFAULT_NETWORKS = [
chainId: 'laconic_9000-1',
networkName: 'laconicd',
namespace: COSMOS,
rpcUrl: process.env.REACT_APP_LACONICD_RPC_URL,
rpcUrl: process.env.REACT_APP_LACONICD_RPC_URL!,
blockExplorerUrl: '',
nativeDenom: 'photon',
addressPrefix: 'laconic',