-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat: redesign app #491
feat: redesign app #491
Conversation
Update safe-react-components and use the new theme to redesign the app. This requires an update of MUI to v5 and removes styled-components. All wrapped MUI components were removed meaning that we have to use the native MUI components across the app. Improvements: - Uses dark mode if OS of user is set to dark appearance - Improves design / flow of the app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like mostly imports dependencies and style boxes. No need to hold this back! Seems we lost the app tile text and have introduced dark mode (a key ingredient). Love it and nice stuff here 🖤😎
"@safe-global/safe-apps-provider": "^0.16.0", | ||
"@safe-global/safe-apps-react-sdk": "^4.6.4", | ||
"@safe-global/safe-apps-sdk": "^7.10.0", | ||
"@safe-global/safe-react-components": "2.0.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
const isDarkMode = useDarkMode(); | ||
const themeMode = isDarkMode ? "dark" : "light"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🖤
<SafeProvider | ||
loader={ | ||
<> | ||
<Typography>Waiting for Safe...</Typography> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am surprised that we need to put this ourselves. Seems like it should just be the default.
Send arbitrarily many distinct tokens, to arbitrarily many distinct accounts with various different values from | ||
a CSV file in a single transaction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean the app no longer had a short description in the App Store tile?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No the description in the AppStore is in our manifest file
@@ -22,6 +39,7 @@ export const DonateDialog = ({ | |||
const { safe } = useSafeAppsSDK(); | |||
const dispatch = useAppDispatch(); | |||
const csvContent = useCsvContent(); | |||
const darkMode = useDarkMode(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🖤🤘🏾😈🏴☠️
@@ -14,10 +20,22 @@ export const Summary = (props: SummaryProps): JSX.Element => { | |||
const { assetTransfers, collectibleTransfers } = props; | |||
const assetTxCount = assetTransfers.length; | |||
const collectibleTxCount = collectibleTransfers.length; | |||
const darkMode = useDarkMode(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🖤💯👌
Update safe-react-components and use the new theme to redesign the app.
This requires an update of MUI to v5 and removes styled-components.
All wrapped MUI components were removed meaning that we have to use the native MUI components across the app.
Further Improvements: