issue-38 #62

Closed
y wants to merge 48 commits from issue-38 into main
Showing only changes of commit 1d59c66611 - Show all commits

View File

@ -147,8 +147,8 @@ export const VerifyPage = () => {
<img <img
onError={imageLoadError} onError={imageLoadError}
src={profile?.picture || getRoboImageUrl(pubkey)} src={profile?.picture || getRoboImageUrl(pubkey)}
alt='Profile Image' alt="Profile Image"
className='profile-image' className="profile-image"
style={{ style={{
borderWidth: '3px', borderWidth: '3px',
borderStyle: 'solid', borderStyle: 'solid',
@ -156,14 +156,14 @@ export const VerifyPage = () => {
}} }}
/> />
<Link to={getProfileRoute(pubkey)}> <Link to={getProfileRoute(pubkey)}>
<Typography component='label' className={styles.name}> <Typography component="label" className={styles.name}>
{profile?.display_name || {profile?.display_name ||
profile?.name || profile?.name ||
shorten(hexToNpub(pubkey))} shorten(hexToNpub(pubkey))}
</Typography> </Typography>
</Link> </Link>
{verifySignature && ( {verifySignature && (
<Typography component='label'> <Typography component="label">
({isValidSignature ? 'Valid' : 'Not Valid'} Signature) ({isValidSignature ? 'Valid' : 'Not Valid'} Signature)
</Typography> </Typography>
)} )}
@ -184,7 +184,7 @@ export const VerifyPage = () => {
} else { } else {
toast.error(`Invalid export signature!`) toast.error(`Invalid export signature!`)
return ( return (
<Typography component='label' sx={{ color: 'red' }}> <Typography component="label" sx={{ color: 'red' }}>
Invalid export signature Invalid export signature
</Typography> </Typography>
) )
@ -201,12 +201,12 @@ export const VerifyPage = () => {
<Box className={styles.container}> <Box className={styles.container}>
{!meta && ( {!meta && (
<> <>
<Typography component='label' variant='h6'> <Typography component="label" variant="h6">
Select exported zip file Select exported zip file
</Typography> </Typography>
<MuiFileInput <MuiFileInput
placeholder='Select file' placeholder="Select file"
value={selectedFile} value={selectedFile}
onChange={(value) => setSelectedFile(value)} onChange={(value) => setSelectedFile(value)}
InputProps={{ InputProps={{
@ -218,7 +218,7 @@ export const VerifyPage = () => {
{selectedFile && ( {selectedFile && (
<Box sx={{ mt: 2, display: 'flex', justifyContent: 'center' }}> <Box sx={{ mt: 2, display: 'flex', justifyContent: 'center' }}>
<Button onClick={handleVerify} variant='contained'> <Button onClick={handleVerify} variant="contained">
Verify Verify
</Button> </Button>
</Box> </Box>
@ -245,7 +245,7 @@ export const VerifyPage = () => {
gap: '15px' gap: '15px'
}} }}
> >
<Typography variant='h6' sx={{ color: textColor }}> <Typography variant="h6" sx={{ color: textColor }}>
Submitted By Submitted By
</Typography> </Typography>
{displayUser(meta.submittedBy)} {displayUser(meta.submittedBy)}
@ -257,7 +257,7 @@ export const VerifyPage = () => {
gap: '15px' gap: '15px'
}} }}
> >
<Typography variant='h6' sx={{ color: textColor }}> <Typography variant="h6" sx={{ color: textColor }}>
Exported By Exported By
</Typography> </Typography>
{displayExportedBy()} {displayExportedBy()}
@ -271,7 +271,7 @@ export const VerifyPage = () => {
alignItems: 'flex-start' alignItems: 'flex-start'
}} }}
> >
<Typography variant='h6' sx={{ color: textColor }}> <Typography variant="h6" sx={{ color: textColor }}>
Signers Signers
</Typography> </Typography>
<ul className={styles.usersList}> <ul className={styles.usersList}>
@ -292,7 +292,7 @@ export const VerifyPage = () => {
alignItems: 'flex-start' alignItems: 'flex-start'
}} }}
> >
<Typography variant='h6' sx={{ color: textColor }}> <Typography variant="h6" sx={{ color: textColor }}>
Viewers Viewers
</Typography> </Typography>
<ul className={styles.usersList}> <ul className={styles.usersList}>
@ -312,7 +312,7 @@ export const VerifyPage = () => {
alignItems: 'flex-start' alignItems: 'flex-start'
}} }}
> >
<Typography variant='h6' sx={{ color: textColor }}> <Typography variant="h6" sx={{ color: textColor }}>
Files Files
</Typography> </Typography>
<ul> <ul>