Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
f9f8eea6
Unverified
Commit
f9f8eea6
authored
Nov 17, 2022
by
lynn
Committed by
GitHub
Nov 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: add filter text when filter button open (#5217)
* fix * remove extra * filter button text fixes
parent
3f6dc180
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
.env
.env
+1
-2
FilterButton.tsx
src/nft/components/collection/FilterButton.tsx
+9
-6
ProfilePage.tsx
src/nft/components/profile/view/ProfilePage.tsx
+0
-1
No files found.
.env
View file @
f9f8eea6
...
@@ -6,5 +6,4 @@ REACT_APP_AWS_API_ACCESS_KEY="AKIAYJJWW6AQ47ODATHN"
...
@@ -6,5 +6,4 @@ REACT_APP_AWS_API_ACCESS_KEY="AKIAYJJWW6AQ47ODATHN"
REACT_APP_AWS_API_ACCESS_SECRET="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"
REACT_APP_AWS_API_ACCESS_SECRET="V9PoU0FhBP3cX760rPs9jMG/MIuDNLX6hYvVcaYO"
REACT_APP_AWS_X_API_KEY="z9dReS5UtHu7iTrUsTuWRozLthi3AxOZlvobrIdr14"
REACT_APP_AWS_X_API_KEY="z9dReS5UtHu7iTrUsTuWRozLthi3AxOZlvobrIdr14"
REACT_APP_AWS_API_ENDPOINT="https://beta.api.uniswap.org/v1/graphql"
REACT_APP_AWS_API_ENDPOINT="https://beta.api.uniswap.org/v1/graphql"
REACT_APP_TEMP_API_URL="https://temp.api.uniswap.org/v1"
REACT_APP_TEMP_API_URL="https://temp.api.uniswap.org/v1"
ESLINT_NO_DEV_ERRORS=true
\ No newline at end of file
src/nft/components/collection/FilterButton.tsx
View file @
f9f8eea6
...
@@ -3,6 +3,7 @@ import { Box } from 'nft/components/Box'
...
@@ -3,6 +3,7 @@ import { Box } from 'nft/components/Box'
import
*
as
styles
from
'
nft/components/collection/FilterButton.css
'
import
*
as
styles
from
'
nft/components/collection/FilterButton.css
'
import
{
FilterIcon
}
from
'
nft/components/icons
'
import
{
FilterIcon
}
from
'
nft/components/icons
'
import
{
buttonTextMedium
}
from
'
nft/css/common.css
'
import
{
buttonTextMedium
}
from
'
nft/css/common.css
'
import
{
breakpoints
}
from
'
nft/css/sprinkles.css
'
import
{
pluralize
,
putCommas
}
from
'
nft/utils
'
import
{
pluralize
,
putCommas
}
from
'
nft/utils
'
export
const
FilterButton
=
({
export
const
FilterButton
=
({
...
@@ -16,6 +17,8 @@ export const FilterButton = ({
...
@@ -16,6 +17,8 @@ export const FilterButton = ({
onClick
:
()
=>
void
onClick
:
()
=>
void
collectionCount
?:
number
collectionCount
?:
number
})
=>
{
})
=>
{
const
hideResultsCount
=
window
.
innerWidth
>=
breakpoints
.
sm
&&
window
.
innerWidth
<
breakpoints
.
md
return
(
return
(
<
Box
<
Box
className=
{
clsx
(
styles
.
filterButton
,
!
isFiltersExpanded
&&
styles
.
filterButtonExpanded
)
}
className=
{
clsx
(
styles
.
filterButton
,
!
isFiltersExpanded
&&
styles
.
filterButtonExpanded
)
}
...
@@ -34,12 +37,12 @@ export const FilterButton = ({
...
@@ -34,12 +37,12 @@ export const FilterButton = ({
>
>
<
FilterIcon
/>
<
FilterIcon
/>
{
!
isMobile
?
(
{
!
isMobile
?
(
<>
<
Box
className=
{
buttonTextMedium
}
>
<
Box
className=
{
buttonTextMedium
}
>
{
'
'
}
{
'
'
}
{
!
collectionCount
||
hideResultsCount
Filter •
{
putCommas
(
collectionCount
)
}
result
{
pluralize
(
collectionCount
)
}
?
'
Filter
'
</
Box
>
:
`Filter • ${putCommas(collectionCount)} result${pluralize(collectionCount)}`
}
</>
</
Box
>
)
:
null
}
)
:
null
}
</
Box
>
</
Box
>
)
)
...
...
src/nft/components/profile/view/ProfilePage.tsx
View file @
f9f8eea6
...
@@ -102,7 +102,6 @@ export const ProfilePage = () => {
...
@@ -102,7 +102,6 @@ export const ProfilePage = () => {
<
FilterButton
<
FilterButton
isMobile=
{
isMobile
}
isMobile=
{
isMobile
}
isFiltersExpanded=
{
isFiltersExpanded
}
isFiltersExpanded=
{
isFiltersExpanded
}
collectionCount=
{
ownerAssets
?.
length
}
onClick=
{
()
=>
setFiltersExpanded
(
!
isFiltersExpanded
)
}
onClick=
{
()
=>
setFiltersExpanded
(
!
isFiltersExpanded
)
}
/>
/>
</
Row
>
</
Row
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment