Skip to content

Commit

Permalink
feat: Add Mint NAMEs flow (#2079)
Browse files Browse the repository at this point in the history
* wip

* fix: adjust UI to the latest designs

* fix: remove unused import

* feat: Remove ClaimYourName component from the AssetBrowse

* feat: rollback sidebar change

* chore: add translations

* feat: use rpc provider if no connected provider is available

* feat: mobile support

* feat: fix styles for desktop

* feat: add min length validation

* feat: adjust to new styles

* feat: add DAO popup

* test: fix tests

* feat: add styles for the set alias phase

* feat: add spanish translation

* test: add ClaimNameFatFingerModal tests

* test: add tests for SetNameAsAliasModal

* chore: rename Mint to Claim for NAMEs

* feat: disable button if user does not have enough balance

* feat: disable the button if loading status is true

* test: refactor of some tests
chore: mainnet settingsw

* test: refactor some tests

* feat: use PageLayout in ClaimNamePage

* test: add test case for success page for ENS

* test: rename test

* feat: update ClaimNamePage images

* chore: remove ununsed import

* test: add tests for the ens utils methods

* test: update tests

* feat: update wordings
  • Loading branch information
juanmahidalgo authored Jan 4, 2024
1 parent 87e7985 commit 61ceaec
Show file tree
Hide file tree
Showing 92 changed files with 7,695 additions and 334 deletions.
130 changes: 65 additions & 65 deletions webapp/package-lock.json

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

3 changes: 0 additions & 3 deletions webapp/src/components/AssetBrowse/AssetBrowse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import CollectionList from '../CollectionList'
import StoreSettings from '../StoreSettings'
import Sales from '../Sales'
import { Bids } from '../Bids'
import { ClaimYourName } from '../ClaimYourName'
import { Props } from './AssetBrowse.types'
import MapTopbar from './MapTopbar'
import MapBrowse from './MapBrowse'
Expand Down Expand Up @@ -233,7 +232,6 @@ const AssetBrowse = (props: Props) => {
case DecentralandSection.ENS:
right = (
<>
{!isAccountOrCurrentAccount && <ClaimYourName />}
<AssetTopbar />
<AssetList isManager={isCurrentAccount} />
</>
Expand All @@ -257,7 +255,6 @@ const AssetBrowse = (props: Props) => {
Sections.decentraland.LAND,
Sections.decentraland.WEARABLES,
Sections.decentraland.EMOTES,
Sections.decentraland.ENS,
Sections.decentraland.ON_SALE,
Sections.decentraland.ON_RENT,
Sections.decentraland.SALES,
Expand Down
7 changes: 0 additions & 7 deletions webapp/src/components/AssetTopbar/AssetTopbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,6 @@ export const AssetTopbar = ({
[onBrowse, onlyOnSale, onlyOnRent]
)

useEffect(() => {
const option = sortByOptions.find(option => option.value === sortBy)
if (!option) {
onBrowse({ sortBy: sortByOptions[0].value })
}
}, [onBrowse, sortBy, sortByOptions])

const sortByValue = sortByOptions.find(option => option.value === sortBy)
? sortBy
: sortByOptions[0].value
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/BrowsePage/BrowsePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const BrowsePage = (props: Props) => {
isFullscreen={Boolean(isFullscreen)}
view={View.MARKET}
section={section}
sections={[Section.WEARABLES, Section.EMOTES, Section.ENS]}
sections={[Section.WEARABLES, Section.EMOTES]}
contracts={contracts}
/>
<Footer isFullscreen={isFullscreen} />
Expand Down
82 changes: 0 additions & 82 deletions webapp/src/components/ClaimYourName/ClaimYourName.module.css

This file was deleted.

51 changes: 0 additions & 51 deletions webapp/src/components/ClaimYourName/ClaimYourName.spec.tsx

This file was deleted.

Loading

0 comments on commit 61ceaec

Please sign in to comment.