Skip to content

Commit

Permalink
Merge pull request #21 from NEARBuilders/feat/editor
Browse files Browse the repository at this point in the history
adds editor
  • Loading branch information
elliotBraem authored May 29, 2024
2 parents 295fdd4 + 24a6678 commit 50b3e68
Show file tree
Hide file tree
Showing 10 changed files with 1,290 additions and 34 deletions.
1 change: 1 addition & 0 deletions gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"dependencies": {
"@braintree/sanitize-url": "^6.0.2",
"@livepeer/react": "^4.1.0",
"@monaco-editor/react": "^4.6.0",
"@playwright/test": "^1.38.1",
"@radix-ui/react-popover": "^1.0.7",
"big.js": "^6.1.1",
Expand Down
4 changes: 4 additions & 0 deletions gateway/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { BroadcastComponent } from "./components/Broadcast/Broadcast";
import { VideoPlayer } from "./components/Player/Player";

import useRedirectMap from "./useRedirectMap";
import Editor from "./components/Editor/Editor";

function Viewer({ widgetSrc, code, initialProps }) {
const { components: redirectMap } = useRedirectMap();
Expand Down Expand Up @@ -121,6 +122,9 @@ function App(props) {
"Broadcast.ApiKey": (props) => {
return <BroadcastComponent.ApiKey {...props} />;
},
"Editor": (props) => {
return <Editor {...props} />;
}
},
features: {
enableComponentSrcDataKey: true,
Expand Down
Loading

0 comments on commit 50b3e68

Please sign in to comment.