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

View File

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