mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-25 10:20:16 -06:00
198d891c94
* SDA-2456: snipping tool component - Create a react component - Stylise the component - Add functionality to open a new window - Add event against the `Done` button and upload snippet * SDA-2456: snipping annotate tool - Added icons for undo, redo & clear - Made the snipping tool window & the image container dynamic * SDA-2456: make image dynamic * SDA-2456: add snapshot tests * SDA-2456: add the height & width properties to the image container * SDA-2456: update snipping tool snapshot * SDA-2456: add support for button selected border * SDA-2456: close existing annotate window * SDA-2456 Changed from class to functional component * SDA-2456: remove outdated tests * SDA-2456: fix image dimension issue * SDA-2456: address PR comments by Kiran Co-authored-by: psjostrom <per.sjostrom@symphony.com>
66 lines
1.2 KiB
Plaintext
66 lines
1.2 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Snipping Tool should render correctly 1`] = `
|
|
<div
|
|
className="SnippingTool"
|
|
lang="en-US"
|
|
>
|
|
<header>
|
|
<div
|
|
className="DrawActions"
|
|
>
|
|
<button
|
|
className="ActionButton"
|
|
onClick={[Function]}
|
|
>
|
|
<img
|
|
src="../renderer/assets/snip-draw.svg"
|
|
/>
|
|
</button>
|
|
<button
|
|
className="ActionButton"
|
|
onClick={[Function]}
|
|
>
|
|
<img
|
|
src="../renderer/assets/snip-highlight.svg"
|
|
/>
|
|
</button>
|
|
<button
|
|
className="ActionButton"
|
|
onClick={[Function]}
|
|
>
|
|
<img
|
|
src="../renderer/assets/snip-erase.svg"
|
|
/>
|
|
</button>
|
|
</div>
|
|
<div
|
|
className="ClearActions"
|
|
>
|
|
<button
|
|
className="ClearButton"
|
|
onClick={[Function]}
|
|
>
|
|
Clear
|
|
</button>
|
|
</div>
|
|
</header>
|
|
<main>
|
|
<img
|
|
alt="Screen snippet"
|
|
className="SnippetImage"
|
|
height={600}
|
|
src="Screen-Snippet"
|
|
width={800}
|
|
/>
|
|
</main>
|
|
<footer>
|
|
<button
|
|
onClick={[Function]}
|
|
>
|
|
Done
|
|
</button>
|
|
</footer>
|
|
</div>
|
|
`;
|