Skip to content

Commit b772ded

Browse files
authored
fix: code editor height and use exact dep versions (#583)
1 parent f89781e commit b772ded

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@monaco-editor/react": "4.6.0",
3636
"@react-aria/utils": "3.23.0",
3737
"@react-hooks-library/core": "0.6.0",
38-
"@react-spring/web": "^9.7.3",
38+
"@react-spring/web": "9.7.3",
3939
"@react-stately/utils": "3.9.0",
4040
"@react-types/shared": "3.22.0",
4141
"@tanstack/match-sorter-utils": "8.8.4",

src/components/CodeEditor.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type Dispatch, useEffect, useState } from 'react'
2-
import { Button, Flex, P } from 'honorable'
2+
import { Button, Div, Flex, P } from 'honorable'
33
import { useTheme } from 'styled-components'
44

55
import Editor, { useMonaco } from '@monaco-editor/react'
@@ -89,7 +89,7 @@ export default function CodeEditor({
8989
height={height}
9090
{...props}
9191
>
92-
<div
92+
<Div
9393
css={{
9494
display: 'flex',
9595
flexDirection: 'column',
@@ -107,7 +107,7 @@ export default function CodeEditor({
107107
options={merge(defaultOptions, options)}
108108
theme={theme.mode === 'light' ? 'plural-light' : 'plural-dark'}
109109
/>
110-
</div>
110+
</Div>
111111
{save && (
112112
<Flex
113113
align="center"

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2899,7 +2899,7 @@ __metadata:
28992899
"@pluralsh/eslint-config-typescript": 2.5.147
29002900
"@react-aria/utils": 3.23.0
29012901
"@react-hooks-library/core": 0.6.0
2902-
"@react-spring/web": ^9.7.3
2902+
"@react-spring/web": 9.7.3
29032903
"@react-stately/utils": 3.9.0
29042904
"@react-types/shared": 3.22.0
29052905
"@storybook/addon-actions": 7.6.5
@@ -4485,7 +4485,7 @@ __metadata:
44854485
languageName: node
44864486
linkType: hard
44874487

4488-
"@react-spring/web@npm:^9.7.3":
4488+
"@react-spring/web@npm:9.7.3":
44894489
version: 9.7.3
44904490
resolution: "@react-spring/web@npm:9.7.3"
44914491
dependencies:

0 commit comments

Comments
 (0)