Skip to content

Commit b885d3c

Browse files
committed
cleanup
1 parent 7434d4e commit b885d3c

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

apps/next-example/src/components/providers.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ import { HypergraphAppProvider } from '@graphprotocol/hypergraph-react';
55
// recommended by https://docs.privy.io/basics/troubleshooting/react-frameworks#next-js
66
export default function Providers({ children }: { children: React.ReactNode }) {
77
return (
8-
<HypergraphAppProvider
9-
syncServerUri="http://localhost:3030"
10-
mapping={{}}
11-
appId="83aa8907-085b-430f-1296-ab87dc98e793"
12-
>
8+
<HypergraphAppProvider syncServerUri="http://localhost:3030" appId="83aa8907-085b-430f-1296-ab87dc98e793">
139
{children}
1410
</HypergraphAppProvider>
1511
);

docs/docs/providers.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ import { HypergraphAppProvider } from "@graphprotocol/hypergraph-react";
99

1010
const App = () => {
1111
return (
12-
<HypergraphAppProvider mapping={{}}>
12+
<HypergraphAppProvider>
1313
<YourApp />
1414
</HypergraphAppProvider>
1515
);
1616
};
1717
```
1818

19-
It has one mandatory prop: `mapping`. This is the mapping of your schema to the public Knowledge Graph schema. You can find more information about the mapping in the [Mapping](/docs/mapping) section later.
20-
21-
Further it has an optional prop: `syncServerUri`. This is the URL of the sync server. By default it is set to `https://sync.geobrowser.io`.
19+
It has an optional prop: `syncServerUri`. This is the URL of the sync server. By default it is set to `https://sync.geobrowser.io`.
2220

2321
## useHypergraphApp
2422

packages/hypergraph-react/test/HypergraphAppContext.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const storageMock = {
2525
describe('HypergraphAppContext', () => {
2626
it('should render the HypergraphAppProvider and be initially unauthenticated', async () => {
2727
const wrapper = ({ children }: Readonly<{ children: React.ReactNode }>) => (
28-
<HypergraphAppProvider storage={storageMock} syncServerUri="http://localhost:3030" mapping={{}} appId="test">
28+
<HypergraphAppProvider storage={storageMock} syncServerUri="http://localhost:3030" appId="test">
2929
{children}
3030
</HypergraphAppProvider>
3131
);

packages/typesync-studio/src/main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { StrictMode } from 'react';
44
import ReactDOM from 'react-dom/client';
55

66
import { createTypesyncAppRouter, type TypesyncAppRouter } from './clients/Router.tsx';
7-
import './styles.css';
87
import reportWebVitals from './reportWebVitals.ts';
8+
import './styles.css';
99

1010
const router = createTypesyncAppRouter();
1111

@@ -22,7 +22,7 @@ if (rootElement && !rootElement.innerHTML) {
2222
const root = ReactDOM.createRoot(rootElement);
2323
root.render(
2424
<StrictMode>
25-
<HypergraphAppProvider storage={localStorage} mapping={{}} appId="577fb988-3699-495a-9e59-ced8ccbf7a19">
25+
<HypergraphAppProvider storage={localStorage} appId="577fb988-3699-495a-9e59-ced8ccbf7a19">
2626
<RouterProvider<TypesyncAppRouter> router={router} />
2727
</HypergraphAppProvider>
2828
</StrictMode>,

0 commit comments

Comments
 (0)