Conversation
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
| const EllipsisMenu = ({ menuItems }: Props): React.ReactElement => { | ||
| const [anchorEl, setAnchorEl] = React.useState(null); | ||
|
|
||
| const handleClick = (event: any) => setAnchorEl(event.currentTarget); |
There was a problem hiding this comment.
I could not add the type, perhaps someone could help me with it.
There was a problem hiding this comment.
something around...
const handleClick: React.MouseEventHandler<'onclick'> = (event) => setAnchor(event.currentTarget);seems to work.
Probably too specific, but in this case, I think it's enough.
There was a problem hiding this comment.
it does not work for me
There was a problem hiding this comment.
If you read through error message it says that it cannot assign to type of null (which is the inferred type of anchorEl). I already pushed a fix
|
once CopyToClipboardBtn component is merged, I have to replace the fixed icon "copy" by the component. |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
| <AddressInfo address={address} shortenAddress={4} /> | ||
| ); | ||
|
|
||
| export const WithOwner = (): React.ReactElement => ( |
There was a problem hiding this comment.
WIth a name, not necessarily an owner
| address={address} | ||
| name="Owner 1" | ||
| showIdenticon | ||
| showCopy |
| name="Owner 1" | ||
| showIdenticon | ||
| showCopy | ||
| showEtherscan |
src/ethereum/AddressInfo/index.tsx
Outdated
| showEtherscan?: boolean; | ||
| }; | ||
|
|
||
| const getShortAddress = (text: string, shortenAddress: number) => |
There was a problem hiding this comment.
I think this wrapper over wrapper is unnecessary, you could use textShortener just fine
| { label: 'Item 2', onClick: console.log }, | ||
| ]; | ||
|
|
||
| export const Loader = (): React.ReactElement => ( |
| :focus { | ||
| outline: none; | ||
| } |
|
Travis automatic deployment: |
1 similar comment
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
mmv08
left a comment
There was a problem hiding this comment.
Please fix those before merging
src/inputs/ButtonLink/index.tsx
Outdated
| @@ -29,12 +30,13 @@ const StyledButtonLink = styled.button<Props>` | |||
| const ButtonLik = ({ | |||
| keepMounted | ||
| onClose={closeMenuHandler} | ||
| open={Boolean(anchorEl)}> | ||
| {menuItems.map((item, i) => ( |
|
Travis automatic deployment: |
|
Travis automatic deployment: |


Closes #23.