Skip to content

Commit

Permalink
feat: Enable SimpleMDE on testnet (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
carina-akaia authored Oct 13, 2023
1 parent 5ae3e15 commit 149e51c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/gigs-board/components/molecule/markdown-editor.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
const MarkdownEditor = ({ data, onChange }) => {
return (
<Widget
src="devhub.efiz.near/widget/SimpleMDE"
src={
context.networkId === "mainnet"
? "devhub.efiz.near/widget/SimpleMDE"
: "efiz.testnet/widget/SimpleMDE"
}
props={{
data,
onChange,
Expand Down
1 change: 0 additions & 1 deletion src/gigs-board/pages/Teams.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ const Viewer = {
DevHub.has_moderator({ account_id: context.accountId }) ?? false,
},
};

/* END_INCLUDE: "entity/viewer" */

const isContractOwner = nearDevGovGigsContractAccountId == context.accountId;
Expand Down

0 comments on commit 149e51c

Please sign in to comment.