mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
more formatting
This commit is contained in:
1 parent
046447b0fb
commit
f552c1212c
157 files changed
+635
-1579
No files matched your search
@@ -58,20 +58,15 @@ export const ShowMore = ({ id, isReported, isMine }) => {
|
||||
|
||||
// if the user cannot perform any actions in show more then don't
|
||||
// allow them to interact with it
|
||||
let _handleClick =
|
||||
allowedToDelete || allowedToReport ? handleClick : () => null;
|
||||
let _handleClick = allowedToDelete || allowedToReport ? handleClick : () => null;
|
||||
|
||||
return (
|
||||
<>
|
||||
<Button
|
||||
aria-controls='simple-menu'
|
||||
aria-haspopup='true'
|
||||
onClick={_handleClick}
|
||||
>
|
||||
<Button aria-controls="simple-menu" aria-haspopup="true" onClick={_handleClick}>
|
||||
<MoreIcon />
|
||||
</Button>
|
||||
<Menu
|
||||
id='simple-menu'
|
||||
id="simple-menu"
|
||||
anchorEl={anchorEl}
|
||||
keepMounted
|
||||
open={Boolean(anchorEl)}
|
||||
@@ -82,16 +77,10 @@ export const ShowMore = ({ id, isReported, isMine }) => {
|
||||
}}
|
||||
>
|
||||
{allowedToDelete && (
|
||||
<MenuItem onClick={handleDeleteTweet}>
|
||||
{t('APPS_TWITTER_DELETE')}
|
||||
</MenuItem>
|
||||
<MenuItem onClick={handleDeleteTweet}>{t('APPS_TWITTER_DELETE')}</MenuItem>
|
||||
)}
|
||||
{allowedToReport && (
|
||||
<ReportButton
|
||||
handleClose={handleClose}
|
||||
isReported={isReported}
|
||||
tweetId={id}
|
||||
/>
|
||||
<ReportButton handleClose={handleClose} isReported={isReported} tweetId={id} />
|
||||
)}
|
||||
</Menu>
|
||||
</>
|
||||
|
||||
Reference in new issue
Block a user