Skip to content

Commit

Permalink
fix: using ClipboardButton instead
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmch committed Jul 31, 2023
1 parent 66159b9 commit 3b7ca01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 44 deletions.
42 changes: 0 additions & 42 deletions src/editor/components/CopyButton/CopyButton.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/editor/components/YamlEditor/YamlEditor.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, {useMemo} from 'react';

import {ClipboardButton} from '@gravity-ui/uikit';
import yaml from 'js-yaml';
import MonacoEditor, {monaco} from 'react-monaco-editor';

import {PageContent} from '../../../models';
import {block} from '../../../utils';
import {CopyButton} from '../CopyButton/CopyButton';

import './YamlEditor.scss';

Expand Down Expand Up @@ -39,7 +39,7 @@ export const YamlEditor = ({content}: YamlEditorProps) => {
return (
<div className={b()}>
<MonacoEditor value={value} language="yaml" options={options} />
<CopyButton className={b('copy-button')} value={value} />
<ClipboardButton className={b('copy-button')} text={value} />
</div>
);
};

0 comments on commit 3b7ca01

Please sign in to comment.