-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* temp * feat: info * integrate api * my dashboard * total reward my dashboard * feat: handle claim * mobile view * fill information * feat: referral * fix: auto show if have refcode * referral leaderboard * referral leaderboard * fix: linh qa * fix: linh qa * fix: button size * fix: total reward * fqa * fix: url my dashboard * fix: update referral message * fix: header active * fix: my dashboard * fix: my dashboard * fix: my dashboard * remove test week * fix: date * chore: change note * feat: update new
- Loading branch information
Showing
28 changed files
with
2,491 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { Trans } from '@lingui/macro' | ||
import { useLocation } from 'react-router-dom' | ||
import { useMedia } from 'react-use' | ||
|
||
import Column from 'components/Column' | ||
import { NewLabel } from 'components/Menu' | ||
import { APP_PATHS } from 'constants/index' | ||
|
||
import { DropdownTextAnchor, StyledNavLink } from '../styleds' | ||
import NavGroup from './NavGroup' | ||
|
||
const CampaignNavGroup = () => { | ||
const { pathname } = useLocation() | ||
const isActive = pathname.includes('/campaigns') | ||
const upTo500 = useMedia('(max-width: 500px)') | ||
|
||
if (upTo500) return null | ||
|
||
return ( | ||
<> | ||
<NavGroup | ||
dropdownAlign={'left'} | ||
isActive={isActive} | ||
anchor={ | ||
<DropdownTextAnchor style={{ position: 'relative', width: '115px' }}> | ||
<Trans>Campaigns</Trans> | ||
<NewLabel style={{ position: 'absolute', right: '0' }}>New</NewLabel> | ||
</DropdownTextAnchor> | ||
} | ||
dropdownContent={ | ||
<Column> | ||
<StyledNavLink to={APP_PATHS.AGGREGATOR_CAMPAIGN} style={{ gap: '12px' }}> | ||
<Trans>Aggregator Trading</Trans> | ||
</StyledNavLink> | ||
<StyledNavLink to={APP_PATHS.LIMIT_ORDER_CAMPAIGN} style={{ gap: '12px' }}> | ||
<Trans>Limit Order</Trans> | ||
</StyledNavLink> | ||
<StyledNavLink to={APP_PATHS.REFFERAL_CAMPAIGN} style={{ gap: '12px' }}> | ||
<Trans>Referral</Trans> | ||
</StyledNavLink> | ||
<StyledNavLink to={APP_PATHS.MY_DASHBOARD} style={{ gap: '12px' }}> | ||
<Trans>My Dashboard</Trans> | ||
</StyledNavLink> | ||
</Column> | ||
} | ||
/> | ||
</> | ||
) | ||
} | ||
|
||
export default CampaignNavGroup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.