forked from tari-project/universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ui): remove MUI (tari-project#261)
Description --- ### package changes: - removed material ui and related packages - `@mui/material`, `@emotion/react`, and `@emotion/styled`. - removed `react-transition-group` since it was only used in one place and we have `framer-motion` already - added `styled-components` for our main styling package ### implementation changes: - removed all uses of Material UI components and replace with custom styled components, main ones so far are: * Typography * Button & IconButton * Stack * Linear & Circular Progress * Toggle Switch * Select * Input * Dialog - updated theme vars to suit `styled-components` - added `GlobalStyles` and `GlobalReset` - updated fontface implemetations - added theme types - replaced mui/styled syntax errrwhere - split out the items in `Settings.tsx` to some of their own files/component Motivation and Context --- - resolves tari-project#238 - material ui is super difficult to customise How Has This Been Tested? --- locally _**screenshots:**_ | components | | :---: | | <img width="393" alt="image" src="https://github.com/user-attachments/assets/73c8a32b-4372-4519-a88f-22abb04e51ca"> | | <img width="480" alt="image" src="https://github.com/user-attachments/assets/c668f316-020a-4e4d-b168-7699220f31ce"> | | <img width="355" alt="image" src="https://github.com/user-attachments/assets/075be908-1839-4377-87ae-45d8c492325f"> <img width="368" alt="image" src="https://github.com/user-attachments/assets/80617ff9-7c25-49cb-9b5a-84546416263d"> | | <img width="910" alt="image" src="https://github.com/user-attachments/assets/be51575f-ec90-495f-85e1-add7643c61f5"> | | <img width="871" alt="image" src="https://github.com/user-attachments/assets/0d1b047a-78f6-4b76-966b-3809262fde53"> | | <img width="744" alt="image" src="https://github.com/user-attachments/assets/188176f6-a034-4aa8-bade-37dd2c4e73df"> | | <img width="220" alt="image" src="https://github.com/user-attachments/assets/07580b6f-5064-4a3b-b2e9-993148104f3c"> <img width="207" alt="image" src="https://github.com/user-attachments/assets/fbbaedf2-ca32-48ec-9fa2-10522f00e354"> | **_videos:_** https://github.com/user-attachments/assets/6cf41a2a-5e37-4d0b-a5fe-9b7b27bd92f9 https://github.com/user-attachments/assets/07298156-a0a9-4a9d-89c2-7ee4609aa5ce https://github.com/user-attachments/assets/6fffd36e-261a-464a-b284-1bb61ee1b7ca What process can a PR reviewer use to test or verify this change? --- run locally :p Breaking Changes --- - [ ] None - [ ] Requires data directory on base node to be deleted - [ ] Requires hard fork - [x] Other - Please specify <!-- Does this include a breaking change? If so, include this line as a footer --> BREAKING CHANGE: - requires `npm ci` and possibly a fresh `npm install` - any wip work that uses `@mui/x` or `react-transition-group` will need to be updated -
- Loading branch information
1 parent
36b5166
commit f7644ab
Showing
152 changed files
with
160,815 additions
and
2,792 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
File renamed without changes.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
15 changes: 8 additions & 7 deletions
15
src/components/MoneroAddressInput/MoneroAddressInput.styles.tsx
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import { styled, Typography } from '@mui/material'; | ||
import styled from 'styled-components'; | ||
import { Typography } from '@app/components/elements/Typography.tsx'; | ||
|
||
export const MoneroAddressInputTypography = styled(Typography)<{ component: string }>(({ theme }) => ({ | ||
marginBottom: theme.spacing(1), | ||
lineHeight: '135%', | ||
display: 'inline-block', | ||
color: theme.palette.text.primary, | ||
})); | ||
export const MoneroAddressInputTypography = styled(Typography)` | ||
margin-bottom: 20px; | ||
line-height: 135%; | ||
display: inline-block; | ||
color: ${({ theme }) => theme.palette.text.primary};, | ||
`; |
Oops, something went wrong.