-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also: * In `src/index.tsx` replace `import { render } from "react-dom";` with `import { createRoot } from "react-dom/client"` (per https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis) * Update `@material-table/core` from 6.2 to 6.3 (not compatible with react 17) * Remove dependency `@mui/styles` (not compatible with react 18); replace with either `import { styled } from "@mui/system";` or direct `sx=` * Remove extra space from between audio components * Update `@microsoft/signalr` from 6 to 8 * Add dev dependency:`@babel/plugin-proposal-private-property-in-object` to deal with legacy warning * Migrate `@testing-library/react-hooks` usage to the corresponding parts in `@testing-library/react` * Remove unnecessary/problematic `await act(...` instances from `@testing-library/react tests` * Use `as any` to handle `TextFieldWithFont` type issues * Replace deprecated `tobeCalled` with `toHaveBeenCalled` and `tobeCalledTimes` with `toHaveBeenCalledTimes` * Remove extra space from between audio components
- Loading branch information
1 parent
642eae3
commit fcb36da
Showing
49 changed files
with
5,180 additions
and
5,584 deletions.
There are no files selected for viewing
656 changes: 272 additions & 384 deletions
656
docs/user_guide/assets/licenses/frontend_licenses.txt
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
24 changes: 11 additions & 13 deletions
24
src/components/DataEntry/DataEntryTable/NewEntry/StyledMenuItem.ts
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,19 +1,17 @@ | ||
import { MenuItem } from "@mui/material"; | ||
import { withStyles } from "@mui/styles"; | ||
import { styled } from "@mui/system"; | ||
|
||
// Copied from customized menus at https://material-ui.com/components/menus/ | ||
const StyledMenuItem = withStyles((theme) => ({ | ||
root: { | ||
border: "1px solid gray", | ||
borderRadius: "8px", | ||
marginTop: "8px", | ||
"&:focus": { | ||
backgroundColor: theme.palette.primary.main, | ||
"& .MuiListItemIcon-root, & .MuiListItemText-primary": { | ||
color: theme.palette.common.white, | ||
}, | ||
// https://mui.com/system/styled/#using-the-theme | ||
const StyledMenuItem = styled(MenuItem)(({ theme }) => ({ | ||
border: "1px solid gray", | ||
borderRadius: "8px", | ||
marginTop: "8px", | ||
"&:focus": { | ||
backgroundColor: theme.palette.primary.main, | ||
"& .MuiListItemIcon-root, & .MuiListItemText-primary": { | ||
color: theme.palette.common.white, | ||
}, | ||
}, | ||
}))(MenuItem); | ||
})); | ||
|
||
export default StyledMenuItem; |
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
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.