Skip to content

Commit

Permalink
corrected playgroundButton
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenlabrie committed Feb 20, 2021
1 parent f27ac5b commit 3616c18
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions server/controllers/mongoSchemaController.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,4 @@ exports.createMongoSchema = (req, res, next) => {
watcher.close();
}
});
// next();
}; //
};
2 changes: 1 addition & 1 deletion server/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ converter.migrateSchema = (req, res, next) => {
res.locals.convertedSchema = new GraphQLSchema({
query: RootQuery,
});

next();
};
const RootQuery = new GraphQLObjectType({
name: 'RootQueryType',
Expand Down
18 changes: 2 additions & 16 deletions src/Components/PlaygroundButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,9 @@ import React, { useState, useEffect } from "react";
import '../public/index.css';

const PlaygroundButton = () => {

// const button = document.getElementById('<your_button_id>');
// button.addEventListener('click', () => {
// createBrowserWindow();
// });
// function createBrowserWindow() {
// const remote = require('electron').remote;
// const BrowserWindow = remote.BrowserWindow;
// const win = new BrowserWindow({
// height: 600,
// width: 800
// });
// win.loadURL('<url>');
// }
return (
<div>
<button className="btn draw-border"><a href="http://localhost:3000/graphql" target="_blank"></a>Playground</button>
<div className="playgroundButton">
<button className="btn draw-border"><a href="http://localhost:3000/graphql" target="_blank">Playground</a></button>
</div>
)
}
Expand Down

0 comments on commit 3616c18

Please sign in to comment.