Skip to content

Commit

Permalink
Merge pull request #1218 from Chia-Network/zsolt/fix-repo-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
paninaro committed Dec 4, 2022
2 parents 4231d4d + 26d84c0 commit 83bbca6
Show file tree
Hide file tree
Showing 371 changed files with 3,177 additions and 7,300 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
// We often want named export even if there is only one at the beginning
"import/prefer-default-export": "off",
// So we do not forget to remove console.logs after debugging
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-console": ["error", { "allow": ["warn", "error", "info"] }],
// Better readability
"react/no-unescaped-entities": "off",
// Useless - the warning that it is dangerous is in the property name
Expand Down
164 changes: 82 additions & 82 deletions package-lock.json

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

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "root",
"private": true,
"scripts": {
"clean": "lerna clean",
"bootstrap": "lerna bootstrap",
Expand All @@ -18,8 +17,8 @@
"autofix:prettier": "prettier --write --ignore-path .gitignore '**/*.{js,jsx,ts,tsx}'",
"build": "lerna run build",
"build:watch": "lerna run build:watch",
"start:gui": "lerna run start --scope @chia/gui",
"dev:gui": "lerna run dev --scope @chia/gui --stream",
"start:gui": "lerna run start --scope @chia-network/gui",
"dev:gui": "lerna run dev --scope @chia-network/gui --stream",
"electron": "npm run start:gui",
"locale:extract": "lerna run locale:extract",
"locale:clean": "lerna run locale:clean",
Expand All @@ -33,8 +32,8 @@
"lerna": "^5.1.8"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "5.42.1",
"@typescript-eslint/parser": "5.42.1",
"@typescript-eslint/eslint-plugin": "5.45.0",
"@typescript-eslint/parser": "5.45.0",
"eslint": "8.27.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-airbnb-typescript": "17.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/api-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

![GitHub contributors](https://img.shields.io/github/contributors/Chia-Network/chia-blockchain-gui?logo=GitHub)

This library provides react hooks on the top of @chia/api and uses [RTK Query](https://redux-toolkit.js.org/rtk-query/overview) under the hood.
This library provides react hooks on the top of @chia-network/api and uses [RTK Query](https://redux-toolkit.js.org/rtk-query/overview) under the hood.
It is designed to simplify common cases for loading data in a web application, eliminating the need to hand-write data fetching & caching logic yourself. Benefits include:

- Automatically refresh queries when data changed (using events from Chia Blockchain).
Expand All @@ -21,7 +21,7 @@ It is designed to simplify common cases for loading data in a web application, e

```tsx
import React from 'react';
import { useGetPublicKeysQuery } from '@chia/api-react';
import { useGetPublicKeysQuery } from '@chia-network/api-react';
import Suspender from 'react-suspender';

export default function PublicKeys() {
Expand Down Expand Up @@ -50,7 +50,7 @@ export default function PublicKeys() {
```tsx
import React, { Suspense } from 'react';
import Websocket from 'ws'; // or read this value from electron main application
import { store, api } from '@chia/api-react';
import { store, api } from '@chia-network/api-react';
import PublicKeys from './PublicKeys';

// prepare api
Expand Down
Loading

0 comments on commit 83bbca6

Please sign in to comment.