Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 Beta Release #16 #1028

Merged
merged 24 commits into from
Jun 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
16cf13d
Bump @types/react-responsive from 8.0.2 to 8.0.5 (#995)
dependabot[bot] Jun 13, 2022
bec87e7
Use SWC compiler to replace Babel (#991)
Xiaolei-Shawn Jun 14, 2022
fca305b
feat: Implement Dark/Light Theme Switch (#979)
lohba Jun 14, 2022
db80be8
Remove unused lint-staged package (#983)
dependabot[bot] Jun 14, 2022
5aca470
light them switch revision (#1010)
asherism Jun 14, 2022
8130bf1
Enable atomic swap where available (#1005)
LeifuChen Jun 15, 2022
7dd11dc
add --legacy-peer-deps flag to updateDependency (#1015)
platschi Jun 15, 2022
c051f00
Initial mobile implementation (#1013)
koredefashokun Jun 15, 2022
9679b61
Replaced one img tag with Image and disabled the rule (#1011)
LeifuChen Jun 15, 2022
6afa21f
Codebase Cleanup (#1008)
platschi Jun 15, 2022
736a10b
add missing key (#1019)
brossetti1 Jun 15, 2022
3feaea3
fix table page reset (#1017)
Jun 15, 2022
9a2d38d
Bump @storybook/react from 6.4.20 to 6.5.9 (#1004)
dependabot[bot] Jun 16, 2022
ee93e0c
Fixed PositionCard negative leverage value (#1020)
sebdevr Jun 16, 2022
5067683
Enable the redeem function on v2 (#1027)
Jun 16, 2022
4072a3e
bump synthetix from 2.68.2 to 2.73.1 (#1029)
platschi Jun 16, 2022
a93ef3a
Bump react-i18next from 11.7.0 to 11.17.2 (#1031)
dependabot[bot] Jun 17, 2022
779bd20
Bump @storybook/addon-essentials from 6.4.20 to 6.5.9 (#1034)
dependabot[bot] Jun 21, 2022
7debb86
Futures transaction history table (#999)
joeyzhaozhao Jun 21, 2022
66db098
remove korean translation leftovers (#1033)
platschi Jun 21, 2022
fd444c2
Merge branch 'main' into dev
platschi Jun 21, 2022
361e246
Fix swc dependency issues (#1040)
avclarke Jun 21, 2022
37cbf32
Mobile new landing page (#958)
LeifuChen Jun 22, 2022
52e8b78
Markets links to ETH market on mobile (#1041)
LeifuChen Jun 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .babelrc

This file was deleted.

5 changes: 3 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["react-app"],
"extends": ["react-app", "plugin:@next/next/recommended"],
"plugins": ["prettier"],
"rules": {
"react/react-in-jsx-scope": "off",
Expand All @@ -17,6 +17,7 @@
],
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/alt-text": "off",
"import/no-anonymous-default-export": "off"
"import/no-anonymous-default-export": "off",
"@next/next/no-img-element": "off"
}
}
2 changes: 1 addition & 1 deletion .github/workflows/updateDependency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Update @synthetixio/contracts-interface dependency
run: |
npm install --legacy-peer-deps --no-audit
npm install @synthetixio/contracts-interface@${{ github.event.client_payload.version }} --save-exact
npm install @synthetixio/contracts-interface@${{ github.event.client_payload.version }} --save-exact --legacy-peer-deps
- name: Commit changes
run: |
git config --global user.email "[email protected]" && git config --global user.name "Synthetix Team"
Expand Down
8 changes: 5 additions & 3 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { CustomThemeProvider } from '../contexts/CustomThemeContext';
import { ThemeProvider } from 'styled-components';
import { themes } from '../styles/theme';
import '../styles/main.css';

export const parameters = {
Expand All @@ -12,10 +13,11 @@ export const parameters = {
},
};

// TODO: Maybe implement custom theme switcher for Storybook.
export const decorators = [
(Story) => (
<CustomThemeProvider>
<ThemeProvider theme={themes.dark}>
<Story />
</CustomThemeProvider>
</ThemeProvider>
),
];
3 changes: 3 additions & 0 deletions assets/svg/app/account.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/svg/app/chevron-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/svg/app/chevron-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/svg/app/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/svg/app/cross.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions assets/svg/app/menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/svg/app/mobile-menu-arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/svg/app/mobile-menu-bridge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/svg/app/mobile-menu-disconnect.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/svg/app/mobile-switch-to-l1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/svg/app/mobile-switch-wallet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/svg/app/moon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/svg/app/price.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/svg/app/stats.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/svg/app/sun.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 1 addition & 14 deletions assets/svg/partners/lyra.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions assets/svg/social/mirror-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions assets/svg/social/mirror.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions components/Badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import styled from 'styled-components';

const Badge = styled.span`
text-transform: uppercase;
color: ${(props) => props.theme.colors.black};
padding: 2px 3px 1px 5px;
padding: 1.6px 3px 1px 5px;
text-align: center;
font-family: ${(props) => props.theme.fonts.black};
background: ${(props) => props.theme.colors.selectedTheme.red};
color: ${(props) => props.theme.colors.selectedTheme.badge.text};
background: ${(props) => props.theme.colors.selectedTheme.badge.background};
border-radius: 100px;
letter-spacing: 1px;
margin-left: 4px;
Expand Down
6 changes: 5 additions & 1 deletion components/BaseModal/BaseModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ const StyledDialogContent = styled(DialogContent)`
border: 0;
background: none;
${media.lessThan('sm')`
&&& {
&&& {
width: 100%;
height: 100%;
margin: 0;

display: flex;
justify-content: center;
align-items: center;
}
`}
`;
Expand Down
Loading