Polished existing features, added items to sidebar navigation

This commit is contained in:
ireic
2019-12-19 22:31:31 +01:00
parent 32170e90d2
commit 6809ec494a
111 changed files with 649 additions and 484 deletions

View File

@@ -3,7 +3,7 @@ import React, { useState } from 'react';
import { copyToClipboard } from 'shared/utils/clipboard';
import { Button } from 'shared/components';
const CopyLinkButton = ({ ...otherProps }) => {
const CopyLinkButton = ({ ...buttonProps }) => {
const [isLinkCopied, setLinkCopied] = useState(false);
const handleLinkCopy = () => {
@@ -12,7 +12,7 @@ const CopyLinkButton = ({ ...otherProps }) => {
copyToClipboard(window.location.href);
};
return (
<Button icon="link" onClick={handleLinkCopy} {...otherProps}>
<Button icon="link" onClick={handleLinkCopy} {...buttonProps}>
{isLinkCopied ? 'Link Copied' : 'Copy link'}
</Button>
);