Skip to content

Commit

Permalink
prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Mar 5, 2023
1 parent addc463 commit f56f610
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
16 changes: 8 additions & 8 deletions docs/migration/graphiql-2.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,14 @@ override certain parts of the UI:

- `GraphiQL.Logo`: Overrides the "logo" at the top right of the screen. By
default, it contains the text "Graph*i*QL".
- `GraphiQL.Toolbar`: Overrides the toolbar next to the query editor. By default,
if contains buttons for prettifying the current editor contents, merging
fragment definitions into the operation definition and copying the contents of
the query editor to the clipboard. Note that the default buttons will not be
shown when passing this component as child to `GraphiQL`, instead it will show
the children you pass to `GraphiQL.Toolbar`. The execute button will always be
shown. If you want to keep the default buttons and add additional buttons you
can use the `toolbar` prop.
- `GraphiQL.Toolbar`: Overrides the toolbar next to the query editor. By
default, if contains buttons for prettifying the current editor contents,
merging fragment definitions into the operation definition and copying the
contents of the query editor to the clipboard. Note that the default buttons
will not be shown when passing this component as child to `GraphiQL`, instead
it will show the children you pass to `GraphiQL.Toolbar`. The execute button
will always be shown. If you want to keep the default buttons and add
additional buttons you can use the `toolbar` prop.
- `GraphiQL.Footer`: Adds a section below the response editor. By default, this
won't show up in the UI.

Expand Down
5 changes: 4 additions & 1 deletion packages/graphiql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ import 'graphiql/graphiql.css';

const fetcher = createGraphiQLFetcher({ url: 'https://my.backend/graphql' });

ReactDOM.render(<GraphiQL fetcher={fetcher} />, document.getElementById('root'));
ReactDOM.render(
<GraphiQL fetcher={fetcher} />,
document.getElementById('root'),
);
```

### Using as UMD bundle over CDN (Unpkg, JSDelivr, etc)
Expand Down

0 comments on commit f56f610

Please sign in to comment.