Skip to content

Commit

Permalink
fix: fetch identity, upstream @osn/common (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony authored Nov 7, 2024
1 parent 4e849e9 commit 7084fc6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/Account/AccountItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Avatar from "./Avatar";
import Address from "./Address";
import { encodeAddress } from "@polkadot/util-crypto";
import { ChainSS58Format, identityChainMap } from "@osn/constants";
import { fetchIdentity } from "@osn/common/es/services/identity";
import { fetchIdentity } from "../utils";
import IdentityIcon from "../Identity/IdentityIcon";
import ChainIcon from "../Chain/ChainIcon";

Expand Down
2 changes: 1 addition & 1 deletion lib/Identity/IdentityUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import IdentityIcon from "./IdentityIcon";
import ChainIcon from "../Chain/ChainIcon";
import Avatar from "../Account/Avatar";
import React, { useEffect, useState } from "react";
import { fetchIdentity } from "@osn/common/es/services/identity";
import { fetchIdentity } from "../utils";
import { useIsMounted } from "@osn/common/es/utils/hooks";
import { identityChainMap, evmChains } from "@osn/constants";
import {
Expand Down
3 changes: 3 additions & 0 deletions lib/utils/identity.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { createFetchIdentity } from "@osn/common/es/services/identity";

export const fetchIdentity = createFetchIdentity();
1 change: 1 addition & 0 deletions lib/utils/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { twMerge } from "tailwind-merge";

export * from "./consts";
export * from "./identity";

export function noop() {}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"tailwind-scrollbar": "^3.0.5"
},
"peerDependencies": {
"@osn/common": "^1.1.0",
"@osn/common": "^2.0.0",
"@osn/constants": "^1.1.2",
"@osn/previewer": "^0.11.2",
"@osn/rich-text-editor": "^0.1.52",
Expand All @@ -101,7 +101,7 @@
"devDependencies": {
"@2nthony/prettier-config": "^1.0.1",
"@babel/preset-env": "^7.21.5",
"@osn/common": "^1.3.7",
"@osn/common": "^2.0.0",
"@osn/constants": "^1.1.2",
"@osn/eslint-config": "^1.0.2",
"@osn/previewer": "^0.12.8",
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4759,7 +4759,7 @@ __metadata:
"@2nthony/prettier-config": ^1.0.1
"@babel/preset-env": ^7.21.5
"@floating-ui/react": ^0.26.6
"@osn/common": ^1.3.7
"@osn/common": ^2.0.0
"@osn/constants": ^1.1.2
"@osn/eslint-config": ^1.0.2
"@osn/icons": ^1.138.0
Expand Down Expand Up @@ -4822,7 +4822,7 @@ __metadata:
typescript: ^5.3.3
vitest: ^0.19.1
peerDependencies:
"@osn/common": ^1.1.0
"@osn/common": ^2.0.0
"@osn/constants": ^1.1.2
"@osn/previewer": ^0.11.2
"@osn/rich-text-editor": ^0.1.52
Expand All @@ -4837,9 +4837,9 @@ __metadata:
languageName: unknown
linkType: soft

"@osn/common@npm:^1.3.7":
version: 1.3.7
resolution: "@osn/common@npm:1.3.7"
"@osn/common@npm:^2.0.0":
version: 2.0.0
resolution: "@osn/common@npm:2.0.0"
dependencies:
"@osn/provider-options": ^1.0.2
bignumber.js: ^9.1.0
Expand All @@ -4852,7 +4852,7 @@ __metadata:
"@polkadot/util-crypto": "*"
react: ^18.2.0
react-dom: ^18.2.0
checksum: a4cede62e7b58ac1694bbd1fa4132e79d2b88f2bf17b4db3dc6150cbf1c6cd57bcbd51b20b3f1dd0013436974840bbb68b42e5e635b3e275a2f398d6f8156347
checksum: e1e1f2626e77c1435e1e8d25ed87be2fb30f491ba9bc1fcda67ebcfa93f5f3291ce1360d87b99330d19db7221a395ae570aca0ee852d4a8e5f9472ea921070c9
languageName: node
linkType: hard

Expand Down

0 comments on commit 7084fc6

Please sign in to comment.