refactor: move copy file button

This commit is contained in:
EnixCoda 2020-03-29 16:07:12 +08:00
parent ed3b117d30
commit efedfc786f
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
import { getCodeElement } from 'platforms/GitHub/DOMHelper'
import * as React from 'react'
import { cx } from 'utils/cx'
import { copyElementContent } from 'utils/DOMHelper'
import { getCodeElement } from './DOMHelper'
type Props = {}

View file

@ -1,9 +1,9 @@
import { raiseError } from 'analytics'
import { Clippy, ClippyClassName } from 'components/Clippy'
import { CopyFileButton, copyFileButtonClassName } from 'components/CopyFileButton'
import * as React from 'react'
import { $ } from 'utils/DOMHelper'
import { renderReact } from 'utils/general'
import { CopyFileButton, copyFileButtonClassName } from './CopyFileButton'
export function isInCodePage() {
const branchListSelector = '#branch-select-menu.branch-select-menu'