Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
184b491 to
86e3f6d
Compare
86e3f6d to
03c980c
Compare
|
|
||
| import { createStyles, makeStyles, Theme } from "@material-ui/core/styles"; | ||
| import { type ReactNode } from "react"; | ||
| import "react-reflex/styles.css"; |
There was a problem hiding this comment.
This changed with the new version of oxfmt.
| return ( | ||
| /* @ts-expect-error MUI's types are screwy */ | ||
| <AppBar position="relative" color="default"> | ||
| {/* @ts-expect-error MUI's types are screwy */} |
There was a problem hiding this comment.
There's a ton of these changes - the issue is that MUI types things as => Jsx.Element, which is wrong according to react 19's types. The fix will be removing the use of MUI.
There was a problem hiding this comment.
Nvm material isn't compatible with React19 because it uses findDOMNode everywhere.
| horizontal: { | ||
| title: "Bottom", | ||
| icon: <HorizontalSplitIcon />, | ||
| icon: <SquareSplitHorizontal />, |
There was a problem hiding this comment.
I replaced a number of the MUI icons with Lucide icons where it was a 1-1 replacement.
| }, [zedState, classes.loadBar]); | ||
|
|
||
| const inputRef = useRef<HTMLInputElement>(); | ||
| const inputRef = useRef<HTMLInputElement>(null); |
There was a problem hiding this comment.
This was a type change with React 19.
| @@ -1,6 +1,6 @@ | |||
| import { CustomCell, CustomRenderer, GridCellKind } from "@glideapps/glide-data-grid"; | |||
| import TextField from "@material-ui/core/TextField"; | |||
| import React, { MutableRefObject, useEffect, useRef } from "react"; | |||
There was a problem hiding this comment.
MutableRefObject is deprecated in favor of RefObject. I made this change in a handful of places.
src/components/EditorDisplay.tsx
Outdated
| {props.diff ? ( | ||
| /* @ts-expect-error Monaco's types are screwy */ |
There was a problem hiding this comment.
This had bugged me - typescript wasn't able to be aware of the types of the two flavors of editor because we weren't being explicit about it. It also meant we had to mess with key props, which made things messier.
Joke's on me, though, cuz the official react bindings for the monaco editor are typed in a screwy way for react 19.
| } from "@fortawesome/free-solid-svg-icons"; | ||
| import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; |
There was a problem hiding this comment.
I was able to get rid of fontawesome entirely which is exciting
| "$schema": "./node_modules/oxfmt/configuration_schema.json", | ||
| "ignorePatterns": ["src/spicedb-common/protodefs", "examples", "public"], | ||
| "experimentalSortImports": { | ||
| "sortImports": { |
There was a problem hiding this comment.
This is no longer experimental :D
03c980c to
96b3fed
Compare
96b3fed to
53c30f8
Compare
53c30f8 to
da0e365
Compare
da0e365 to
8ba2e9c
Compare
8ba2e9c to
a8a2d31
Compare
633bb12 to
f2c1064
Compare
f2c1064 to
f755691
Compare
f755691 to
538bbbe
Compare
538bbbe to
0f6dbc7
Compare
0f6dbc7 to
15677b7
Compare
15677b7 to
842a6d0
Compare
Description
Things I noticed while working on #122
Changes
Testing
Review. See that tests pass and lints pass. Do a quick scan of the preview.