Skip to content

Commit f1cf63e

Browse files
author
Ives van Hoorne
committed
Add Svelte to new sandbox bar
1 parent 4a44e67 commit f1cf63e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/app/pages/Sandbox/Editor/Content/Header/NewSandboxMenu.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
newSandboxUrl,
1010
newPreactSandboxUrl,
1111
newVueSandboxUrl,
12+
newSvelteSandboxUrl,
1213
importFromGitHubUrl,
1314
uploadFromCliUrl,
1415
newReactTypeScriptSandboxUrl,
@@ -42,6 +43,9 @@ export default () => (
4243
<Link style={{ textDecoration: 'none' }} to={newPreactSandboxUrl()}>
4344
<MenuItem>New Preact Sandbox</MenuItem>
4445
</Link>
46+
<Link style={{ textDecoration: 'none' }} to={newSvelteSandboxUrl()}>
47+
<MenuItem>New Svelte Sandbox</MenuItem>
48+
</Link>
4549
<Link style={{ textDecoration: 'none' }} to={newVueSandboxUrl()}>
4650
<MenuItem>New Vue Sandbox</MenuItem>
4751
</Link>

src/app/utils/url-generator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export const newReactTypeScriptSandboxUrl = () => `/s/react-ts`;
2323
export const newPreactSandboxUrl = () => `/s/preact`;
2424
export const newVueSandboxUrl = () => `/s/vue`;
2525
export const importFromGitHubUrl = () => `/s/github`;
26+
export const newSvelteSandboxUrl = () => `/s/svelte`;
2627
export const uploadFromCliUrl = () => `/s/cli`;
2728

2829
const sandboxGitUrl = (git: {

0 commit comments

Comments
 (0)