Skip to content

Commit 4a77775

Browse files
authored
Add Deploy with Defender button (#321)
1 parent 192e5dc commit 4a77775

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

packages/ui/src/App.svelte

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import DownloadIcon from './icons/DownloadIcon.svelte';
1515
import ZipIcon from './icons/ZipIcon.svelte';
1616
import FileIcon from './icons/FileIcon.svelte';
17+
import OzIcon from './icons/OzIcon.svelte';
1718
import Dropdown from './Dropdown.svelte';
1819
import OverflowMenu from './OverflowMenu.svelte';
1920
import Tooltip from './Tooltip.svelte';
@@ -174,6 +175,13 @@
174175
</div>
175176

176177
<div class="action flex flex-row gap-2 shrink-0">
178+
<a href="https://docs.openzeppelin.com/defender/v2/tutorial/deploy?utm_campaign=Defender%20GA_2024&utm_source=Wizard#environment_setup" target="_blank" rel="noopener noreferrer">
179+
<button class="action-button min-w-[165px]">
180+
<OzIcon />
181+
Deploy with Defender
182+
</button>
183+
</a>
184+
177185
<button class="action-button min-w-[165px]" on:click={copyHandler}>
178186
{#if copied}
179187
<CheckIcon />

packages/ui/src/icons/OzIcon.svelte

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" aria-hidden="true" focusable="false">
2+
<g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)" stroke="none">
3+
<path d="M260 4455 l0 -665 1906 2 1906 3 375 630 c206 347 384 645 395 663
4+
l20 32 -2301 0 -2301 0 0 -665z"/>
5+
<path d="M2916 3614 c-305 -55 -602 -243 -778 -494 -44 -62 -1868 -3104 -1868
6+
-3115 0 -3 348 -5 773 -5 l772 1 1080 1806 c594 993 1082 1809 1083 1814 2 5
7+
-212 9 -490 8 -380 -1 -511 -4 -572 -15z"/>
8+
<path d="M3217 1314 c-149 -27 -304 -91 -432 -177 -80 -54 -218 -188 -270
9+
-262 -30 -43 -458 -753 -522 -867 -2 -5 642 -8 1431 -8 l1436 0 0 665 0 665
10+
-782 -1 c-629 -1 -798 -4 -861 -15z"/>
11+
</g>
12+
</svg>

0 commit comments

Comments
 (0)