Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ed892d

Browse files
committed
Rename FileCopyIcon, take out of index
1 parent eca859a commit 4ed892d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

site/src/components/Button/CopyButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { makeStyles } from "@material-ui/core/styles"
33
import Tooltip from "@material-ui/core/Tooltip"
44
import Check from "@material-ui/icons/Check"
55
import React, { useState } from "react"
6-
import { FileCopy } from "../Icons"
6+
import { FileCopyIcon } from "../Icons/FileCopyIcon"
77

88
interface CopyButtonProps {
99
text: string
@@ -38,7 +38,7 @@ export const CopyButton: React.FC<CopyButtonProps> = ({ className = "", text })
3838
<Tooltip title="Copy to Clipboard" placement="top">
3939
<div className={`${styles.copyButtonWrapper} ${className}`}>
4040
<Button className={styles.copyButton} onClick={copyToClipboard} size="small">
41-
{isCopied ? <Check className={styles.fileCopyIcon} /> : <FileCopy className={styles.fileCopyIcon} />}
41+
{isCopied ? <Check className={styles.fileCopyIcon} /> : <FileCopyIcon className={styles.fileCopyIcon} />}
4242
</Button>
4343
</div>
4444
</Tooltip>

site/src/components/Icons/FileCopy.tsx renamed to site/src/components/Icons/FileCopyIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import SvgIcon from "@material-ui/core/SvgIcon"
22
import React from "react"
33

4-
export const FileCopy: typeof SvgIcon = (props) => (
4+
export const FileCopyIcon: typeof SvgIcon = (props) => (
55
<SvgIcon {...props} viewBox="0 0 20 20">
66
<path
77
d="M12.7412 2.2807H4.32014C3.5447 2.2807 2.91663 2.90877 2.91663 3.68421V13.5088H4.32014V3.68421H12.7412V2.2807ZM14.8465 5.08772H7.12716C6.35172 5.08772 5.72365 5.71579 5.72365 6.49123V16.3158C5.72365 17.0912 6.35172 17.7193 7.12716 17.7193H14.8465C15.6219 17.7193 16.25 17.0912 16.25 16.3158V6.49123C16.25 5.71579 15.6219 5.08772 14.8465 5.08772ZM14.8465 16.3158H7.12716V6.49123H14.8465V16.3158Z"

site/src/components/Icons/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export { CoderIcon } from "./CoderIcon"
2-
export * from "./FileCopy"
32
export { Logo } from "./Logo"
43
export * from "./Logout"
54
export { WorkspacesIcon } from "./WorkspacesIcon"

0 commit comments

Comments
 (0)