Skip to content

Commit

Permalink
fix(common): Fix rendering error in ConfigRenderer component
Browse files Browse the repository at this point in the history
  • Loading branch information
fussel178 authored and Ludwig Richter committed Jun 23, 2021
1 parent 99073d0 commit 337c47b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 81 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { Key, useCallback } from 'react';
import { ActionGroup } from '@adobe/react-spectrum';
import {
ActionGroup,
Item,
Tooltip,
TooltipTrigger
} from '@adobe/react-spectrum';
import Copy from '@spectrum-icons/workflow/Copy';
import Paste from '@spectrum-icons/workflow/Paste';

import { TooltipItem } from './tooltip-item';

/**
* React Props of {@link CopyPasteActions}
*
Expand Down Expand Up @@ -79,20 +82,18 @@ export function CopyPasteActions({
onAction={handle}
disabledKeys={isPasteDisabled ? ['paste'] : []}
>
<TooltipItem
key="copy"
aria-label="Copy properties to clipboard"
tooltip="Copy"
>
<Copy />
</TooltipItem>
<TooltipItem
key="paste"
aria-label="Paste properties from clipboard"
tooltip="Paste"
>
<Paste />
</TooltipItem>
<TooltipTrigger>
<Item key="copy" aria-label="Copy properties to clipboard">
<Copy />
</Item>
<Tooltip>Copy</Tooltip>
</TooltipTrigger>
<TooltipTrigger>
<Item key="paste" aria-label="Paste properties from clipboard">
<Paste />
</Item>
<Tooltip>Paste</Tooltip>
</TooltipTrigger>
</ActionGroup>
);
}

This file was deleted.

0 comments on commit 337c47b

Please sign in to comment.