Skip to content

Commit

Permalink
feat: add auth flow with auth dapp
Browse files Browse the repository at this point in the history
  • Loading branch information
Melisa Anabella Rossi committed Dec 22, 2023
1 parent a298b9f commit 39b281a
Show file tree
Hide file tree
Showing 18 changed files with 300 additions and 178 deletions.
217 changes: 84 additions & 133 deletions webapp/package-lock.json

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

9 changes: 5 additions & 4 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@0xsquid/squid-types": "^0.1.29",
"@covalenthq/client-sdk": "^0.6.4",
"@dcl/crypto": "^3.0.0",
"@dcl/schemas": "^9.6.0",
"@dcl/schemas": "^9.10.0",
"@dcl/single-sign-on-client": "^0.1.0",
"@dcl/ui-env": "^1.2.0",
"@ethersproject/providers": "^5.6.2",
Expand All @@ -18,11 +18,11 @@
"date-fns": "^2.23.0",
"dcl-catalyst-client": "^21.2.0",
"dcl-catalyst-commons": "^9.0.1",
"decentraland-connect": "^5.1.0",
"decentraland-connect": "^5.2.3",
"decentraland-crypto-fetch": "^1.0.3",
"decentraland-dapps": "^16.21.1",
"decentraland-dapps": "^16.21.4",
"decentraland-transactions": "^1.50.0",
"decentraland-ui": "^4.30.7",
"decentraland-ui": "^4.31.0",
"dotenv": "^10.0.0",
"ethers": "^5.6.8",
"graphql": "^14.7.0",
Expand Down Expand Up @@ -75,6 +75,7 @@
"css-mediaquery": "^0.1.2",
"customize-cra": "^1.0.0",
"dcl-tslint-config-standard": "^3.0.0",
"http-proxy-middleware": "^2.0.6",
"prettier": "^1.19.1",
"react-app-rewired": "^2.2.1",
"react-error-overlay": "^6.0.9",
Expand Down
5 changes: 3 additions & 2 deletions webapp/src/components/Navbar/Navbar.container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { isPending } from 'decentraland-dapps/dist/modules/transaction/utils'
import { RootState } from '../../modules/reducer'
import { getTransactions } from '../../modules/transaction/selectors'
import { isConnected } from '../../modules/wallet/selectors'
import { getIsNewNavbarDropdownEnabled } from '../../modules/features/selectors'
import { getIsAuthDappEnabled, getIsNewNavbarDropdownEnabled } from '../../modules/features/selectors'
import { MapStateProps, MapDispatch, MapDispatchProps } from './Navbar.types'
import Navbar from './Navbar'
import { getCurrentIdentity } from '../../modules/identity/selectors'
Expand All @@ -17,7 +17,8 @@ const mapState = (state: RootState): MapStateProps => ({
isPending(tx.status)
),
isNewNavbarDropdownEnabled: getIsNewNavbarDropdownEnabled(state),
identity: getCurrentIdentity(state) || undefined
identity: getCurrentIdentity(state) || undefined,
isAuthDappEnabled: getIsAuthDappEnabled(state)
})

const mapDispatch = (dispatch: MapDispatch): MapDispatchProps => ({
Expand Down
Loading

0 comments on commit 39b281a

Please sign in to comment.