Skip to content

Commit

Permalink
chore: use @types/react18
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricbet committed Mar 16, 2023
1 parent e480943 commit f73af63
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@
"tools/cli-engine"
],
"resolutions": {
"@types/react": "^16.9.23",
"@types/react-dom": "^16.9.17",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"classnames": "2.3.1"
},
"packageManager": "yarn@3.2.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/comments/src/browser/comments-item.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const ReplyItem: React.FC<{
{timestamp && <Timestamp timestamp={timestamp} />}
{typeof label === 'string' ? <span className={styles.comment_item_label}>{label}</span> : label}
{' : '}
<span className={styles.comment_item_body}>{body}</span>
<span className={styles.comment_item_body}>{typeof body === 'string' ? body : body.value}</span>
{reply.reactions && reply.reactions.length > 0 && (
<CommentReactionSwitcher className={styles.reply_item_title} thread={thread} comment={reply} />
)}
Expand Down
3 changes: 2 additions & 1 deletion packages/editor/src/browser/editor.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ export const EditorGroupView = observer(({ group }: { group: EditorGroup }) => {
>
{EmptyEditorViewConfig && ReactIs.isValidElementType(EmptyEditorViewConfig.component) ? (
<ErrorBoundary>
{React.createElement(EmptyEditorViewConfig.component, EmptyEditorViewConfig.initialProps)}
{EmptyEditorViewConfig.component &&
React.createElement(EmptyEditorViewConfig.component, EmptyEditorViewConfig.initialProps)}
</ErrorBoundary>
) : null}
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/main-layout/src/browser/tabbar/tabbar.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const CONTAINER_NAME_MAP = {

@Injectable({ multiple: true })
export class TabbarService extends WithEventBus {
@observable currentContainerId: string;
@observable.ref currentContainerId = '';

previousContainerId = '';

Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4405,12 +4405,12 @@ __metadata:
languageName: node
linkType: hard

"@types/react-dom@npm:^16.9.17":
version: 16.9.17
resolution: "@types/react-dom@npm:16.9.17"
"@types/react-dom@npm:^18.0.0":
version: 18.0.11
resolution: "@types/react-dom@npm:18.0.11"
dependencies:
"@types/react": ^16
checksum: c9246eb4d35993463608de61111f2bdae5afbd22556c8b9918081516b67eafd1a9ef141c3ed459dd4c753dd7ea037b6a375a856e677c2586396c23732772831d
"@types/react": "*"
checksum: 579691e4d5ec09688087568037c35edf8cfb1ab3e07f6c60029280733ee7b5c06d66df6fcc90786702c93ac8cb13bc7ff16c79ddfc75d082938fbaa36e1cdbf4
languageName: node
linkType: hard

Expand All @@ -4432,14 +4432,14 @@ __metadata:
languageName: node
linkType: hard

"@types/react@npm:^16.9.23":
version: 16.14.35
resolution: "@types/react@npm:16.14.35"
"@types/react@npm:^18.0.0":
version: 18.0.28
resolution: "@types/react@npm:18.0.28"
dependencies:
"@types/prop-types": "*"
"@types/scheduler": "*"
csstype: ^3.0.2
checksum: ed9c551a7d50d073a5fb0295c1d939536c66c3286d42b6c94c20749464492ed95a408e6d3694bf49df0012da69e22202065c8c2fac0406356972a7fcb4960dd3
checksum: e752df961105e5127652460504785897ca6e77259e0da8f233f694f9e8f451cde7fa0709d4456ade0ff600c8ce909cfe29f9b08b9c247fa9b734e126ec53edd7
languageName: node
linkType: hard

Expand Down

0 comments on commit f73af63

Please sign in to comment.