Skip to content

Commit c48726a

Browse files
fix: Update decentraland-dapps (#2849)
* fix: Update dApps * fix: Update decentraland-dapps * fix: Update dependencies * fix: Remove FF * fix: Package.json * fix: Update react-testing and remove tslint
1 parent 1dc2435 commit c48726a

File tree

13 files changed

+521
-1105
lines changed

13 files changed

+521
-1105
lines changed

package-lock.json

Lines changed: 509 additions & 1067 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"@dcl/single-sign-on-client": "^0.0.12",
1616
"@dcl/ui-env": "^1.2.0",
1717
"@testing-library/jest-dom": "^5.16.4",
18-
"@testing-library/react": "^11.0.0",
1918
"@testing-library/user-event": "^13.5.0",
2019
"@typechain/ethers-v5": "^10.1.0",
2120
"@types/jszip": "^3.1.6",
@@ -33,11 +32,11 @@
3332
"dcl-scene-writer": "^1.1.2",
3433
"decentraland": "^3.3.0",
3534
"decentraland-builder-scripts": "^0.24.0",
36-
"decentraland-dapps": "^15.8.4",
35+
"decentraland-dapps": "^16.0.4",
3736
"decentraland-ecs": "^6.6.1-20201020183014.commit-bdc29ef-hotfix",
3837
"decentraland-experiments": "^1.0.2",
3938
"decentraland-transactions": "^1.47.0",
40-
"decentraland-ui": "^4.5.3",
39+
"decentraland-ui": "^4.6.1",
4140
"ethers": "^5.6.8",
4241
"file-saver": "^2.0.1",
4342
"graphql": "^15.8.0",
@@ -74,6 +73,7 @@
7473
"web-vitals": "^2.1.4"
7574
},
7675
"devDependencies": {
76+
"@testing-library/react": "^12.1.5",
7777
"@types/blob-to-buffer": "^1.2.0",
7878
"@types/file-saver": "^2.0.0",
7979
"@types/interface-datastore": "^1.0.0",
@@ -92,7 +92,6 @@
9292
"@typescript-eslint/eslint-plugin": "^5.36.2",
9393
"@typescript-eslint/parser": "^5.36.2",
9494
"concurrently": "^7.2.2",
95-
"dcl-tslint-config-standard": "^1.1.0",
9695
"decentraland-rpc": "^3.1.8",
9796
"eslint": "^7.28.0",
9897
"eslint-config-prettier": "^8.5.0",

src/components/Navbar/Navbar.container.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ import { connect } from 'react-redux'
22
import { push } from 'connected-react-router'
33
import { isLoggedIn } from 'modules/identity/selectors'
44
import { RootState } from 'modules/common/types'
5-
import { getIsProfileSiteEnabled } from 'modules/features/selectors'
65
import { locations } from 'routing/locations'
76
import { MapStateProps, MapDispatchProps, MapDispatch, OwnProps } from './Navbar.types'
87
import Navbar from './Navbar'
98

109
const mapState = (state: RootState): MapStateProps => ({
11-
isConnected: isLoggedIn(state),
12-
isProfileSiteEnabled: getIsProfileSiteEnabled(state)
10+
isConnected: isLoggedIn(state)
1311
})
1412

1513
const mapDispatch = (dispatch: MapDispatch): MapDispatchProps => ({

src/components/Navbar/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default class Navbar extends React.PureComponent<Props> {
77
render() {
88
let props = this.props
99
if (props.isConnected) {
10-
props = { ...props, rightMenu: <UserMenu newMenu={props.isProfileSiteEnabled} /> }
10+
props = { ...props, rightMenu: <UserMenu /> }
1111
}
1212
return <BaseNavbar activePage="builder" {...props} />
1313
}
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { NavbarProps } from 'decentraland-ui'
22
import { Dispatch } from 'redux'
33

4-
export type Props = NavbarProps & {
5-
isProfileSiteEnabled: boolean
6-
}
4+
export type Props = NavbarProps
75

8-
export type MapStateProps = Pick<Props, 'isConnected' | 'isProfileSiteEnabled'>
6+
export type MapStateProps = Pick<Props, 'isConnected'>
97
export type MapDispatchProps = Pick<Props, 'onSignIn'>
108
export type MapDispatch = Dispatch
119
export type OwnProps = Partial<Props>

src/components/SceneViewPage/SceneViewPage.container.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { getData as getScenes, getIsLoading as getIsLoadingScene } from 'modules
1212
import { getCurrentAuthor } from 'modules/profile/selectors'
1313
import { togglePreview, closeEditor } from 'modules/editor/actions'
1414
import { getCurrentProject, getLoading as getLoadingProject } from 'modules/project/selectors'
15-
import { getIsInspectorEnabled, getIsProfileSiteEnabled, getIsTemplatesEnabled } from 'modules/features/selectors'
15+
import { getIsInspectorEnabled, getIsTemplatesEnabled } from 'modules/features/selectors'
1616
import { openModal } from 'modules/modal/actions'
1717
import { PreviewType } from 'modules/editor/types'
1818
import { Project } from 'modules/project/types'
@@ -30,7 +30,6 @@ const mapState = (state: RootState): MapStateProps => ({
3030
currentAuthor: getCurrentAuthor(state),
3131
isTemplatesEnabled: getIsTemplatesEnabled(state),
3232
isInspectorEnabled: getIsInspectorEnabled(state),
33-
isProfileSiteEnabled: getIsProfileSiteEnabled(state),
3433
isLoading: getIsLoadingScene(state) || !!getLoadingProject(state).length
3534
})
3635

src/components/SceneViewPage/SceneViewPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default class SceneViewPage extends React.PureComponent<Props> {
138138
}
139139

140140
renderAuthor() {
141-
const { currentAuthor, isProfileSiteEnabled } = this.props
141+
const { currentAuthor } = this.props
142142

143143
if (!currentAuthor) {
144144
return null
@@ -149,7 +149,7 @@ export default class SceneViewPage extends React.PureComponent<Props> {
149149
return (
150150
<div className="author">
151151
{t('public_page.made_by')}
152-
<Profile address={address} {...(isProfileSiteEnabled && { as: 'a', href: `${PROFILE_URL}/accounts/${address}` })} />
152+
<Profile address={address} as="a" href={`${PROFILE_URL}/accounts/${address}`} />
153153
</div>
154154
)
155155
}

src/components/SceneViewPage/SceneViewPage.types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export type Props = {
2626
isReady: boolean
2727
isTemplatesEnabled: boolean
2828
isInspectorEnabled: boolean
29-
isProfileSiteEnabled: boolean
3029
isLoading: boolean
3130
onCloseEditor: typeof closeEditor
3231
onLoadProject: typeof loadPublicProjectRequest
@@ -50,7 +49,6 @@ export type MapStateProps = Pick<
5049
| 'currentAuthor'
5150
| 'isTemplatesEnabled'
5251
| 'isInspectorEnabled'
53-
| 'isProfileSiteEnabled'
5452
>
5553
export type MapDispatchProps = Pick<
5654
Props,

src/modules/common/sagas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function* rootSaga(builderAPI: BuilderAPI, newBuilderClient: BuilderClien
8383
walletSaga(),
8484
collectionCurationSaga(builderAPI),
8585
itemCurationSaga(builderAPI),
86-
featuresSaga({ polling: { apps: [ApplicationName.BUILDER, ApplicationName.DAPPS], delay: 60000 /** 60 seconds */ } }),
86+
featuresSaga({ polling: { apps: [ApplicationName.BUILDER], delay: 60000 /** 60 seconds */ } }),
8787
inspectorSaga(builderAPI, store)
8888
])
8989
}

src/modules/features/selectors.spec.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import { getIsFeatureEnabled } from 'decentraland-dapps/dist/modules/features/selectors'
22
import { ApplicationName } from 'decentraland-dapps/dist/modules/features/types'
33
import { RootState } from 'modules/common/types'
4-
import {
5-
getIsDeployToWorldsEnabled,
6-
getIsMaintenanceEnabled,
7-
getIsProfileSiteEnabled,
8-
getIsPublishSmartWearablesEnabled
9-
} from './selectors'
4+
import { getIsDeployToWorldsEnabled, getIsMaintenanceEnabled, getIsPublishSmartWearablesEnabled } from './selectors'
105
import { FeatureName } from './types'
116

127
jest.mock('decentraland-dapps/dist/modules/features/selectors')
@@ -60,7 +55,6 @@ describe('when getting if maintainance is enabled', () => {
6055

6156
const ffSelectors = [
6257
{ selector: getIsDeployToWorldsEnabled, app: ApplicationName.BUILDER, feature: FeatureName.DEPLOY_WORLDS },
63-
{ selector: getIsProfileSiteEnabled, app: ApplicationName.DAPPS, feature: FeatureName.PROFILE },
6458
{ selector: getIsPublishSmartWearablesEnabled, app: ApplicationName.BUILDER, feature: FeatureName.PUBLISH_SMART_WEARABLES }
6559
]
6660

0 commit comments

Comments
 (0)