Skip to content

Commit 3a0896b

Browse files
committed
Fix common import issues
1 parent 7068d37 commit 3a0896b

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

packages/react-sandpack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-smooshpack",
3-
"version": "0.0.55",
3+
"version": "0.0.56",
44
"description": "",
55
"keywords": [],
66
"license": "SEE LICENSE.MD IN ROOT",

packages/react-sandpack/src/components/BrowserPreview/BrowserPreview.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as React from 'react';
22

3-
import SandpackConsumer from '../SandpackConsumer';
43
import Preview from '../Preview';
54
import Navigator from '../Navigator';
65

packages/react-sandpack/src/components/Navigator/Navigator.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import RefreshIcon from './RefreshIcon';
66
import BackwardIcon from './BackwardIcon';
77
import ForwardIcon from './ForwardIcon';
88

9-
import { ENTER } from 'common/utils/keycodes';
10-
119
import withSandpack from '../../utils/with-sandpack';
1210
import { ISandpackContext } from '../../types';
1311
import cn from '../../utils/cn';
@@ -117,7 +115,8 @@ class Navigator extends React.Component<Props, State> {
117115
};
118116

119117
onKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
120-
if (e.keyCode === ENTER) {
118+
if (e.keyCode === 13) {
119+
// Enter
121120
e.preventDefault();
122121
e.stopPropagation();
123122

packages/react-sandpack/src/components/Preview/Preview.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as React from 'react';
22
import { ISandpackContext } from '../../types';
3-
import SandpackConsumer from '../SandpackConsumer';
43
import withSandpack from '../../utils/with-sandpack';
54

65
export interface PreviewProps {

packages/react-sandpack/src/components/SandpackProvider/SandpackProvider.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { Manager, generatePackageJSON } from 'smooshpack';
44
import { listen } from 'codesandbox-api';
55

66
import {
7-
IFile,
87
IFiles,
98
IManagerState,
109
ISandpackContext,

0 commit comments

Comments
 (0)