upgrade to react 19 and tiptap editor#140
Conversation
This reverts commit 5310f4b.
# Conflicts: # package-lock.json # package.json # src/components/Tooltip/Tooltip.tsx
… into feature/upgrade-react
reunefe
left a comment
There was a problem hiding this comment.
Op zich zie ik hier niet gigantisch veel problemen in. Wel veel any en niet vertaalbare labels 🙈
| }; | ||
|
|
||
| return cloneElement(children as ReactElement, { | ||
| return cloneElement(children as ReactElement<any>, { |
There was a problem hiding this comment.
Waarom any ipv de juiste props interface?
|
|
||
| const isSingleElement = (node: ReactNode) => { | ||
| const el = node as JSX.Element; | ||
| const el = node as ReactElement<any>; |
There was a problem hiding this comment.
Waarom any ipv de juiste props interface?
| import { DropdownButton, DropdownContent } from './Dropdown.slots'; | ||
|
|
||
| const DropdownStoryComponent = ({ children }: { children: ReactElement }) => { | ||
| const DropdownStoryComponent = ({ children }: { children: ReactElement<any> }) => { |
There was a problem hiding this comment.
Waarom any ipv de juiste props interface?
| } | ||
|
|
||
| const renderSortingIndicator = (header: Header<RowDataType, unknown>) => { | ||
| if (!header.column.getCanSort()) return null; |
There was a problem hiding this comment.
Ik vind dit heel moeilijk leesbaar met de oneliners
| aria-hidden={true} | ||
| className={clsx(thClass(false), focusedTdClass(false))} | ||
| > | ||
| <td role="presentation" className={clsx(thClass(false), focusedTdClass(false))}> |
There was a problem hiding this comment.
Waarom heb je de aria-hidden eraf gehaald? Deze cel mag niet accessible zijn
| ))} | ||
| {group.headers.map((header) => { | ||
| const column = header.column; | ||
| const isSorted = column.getIsSorted() !== false; |
There was a problem hiding this comment.
Ik zou dit eerder inverteren zodat je geen vals positief kan krijgen
| const isSorted = column.getIsSorted() !== false; | |
| const isSorted = column.getIsSorted() === true; |
| <> | ||
| <div | ||
| className="c-tooltip-component-trigger" | ||
| data-id={id} |
There was a problem hiding this comment.
Dit is overbodig geworden?
| UseRowSelectRowProps<D>, | ||
| UseRowStateRowProps<D> {} | ||
| } | ||
| // This file previously augmented the 'react-table' v7 module. |
There was a problem hiding this comment.
Kunnen we dit dan niet weg gooien?
https://meemoo.atlassian.net/browse/ARC-3762
we'll keep branch
main-with-braft-editoras the old branchand
main-with-tiptapfor the new onethen we can force switch main between these 2 to make new releases
i also propose to use a new major version of the libraries to signify the switch of the RTE