Skip to content

Commit ddb9099

Browse files
fix: uuid imports (#8826)
1 parent 5f482c8 commit ddb9099

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/app/src/app/components/Preview/DevTools/Terminal/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { listen, dispatch } from 'codesandbox-api';
44
import React from 'react';
55
import PlusIcon from 'react-icons/lib/md/add';
66
import { withTheme } from 'styled-components';
7-
import uuid from 'uuid';
7+
import { v4 as uuidv4 } from 'uuid';
88

99
import { notificationState } from '@codesandbox/common/lib/utils/notifications';
1010
import { NotificationStatus } from '@codesandbox/notifications';
@@ -105,7 +105,7 @@ class DevToolTerminal extends React.Component<
105105

106106
createShell = (script?: string) => {
107107
const newShell = {
108-
id: uuid.v4(),
108+
id: uuidv4(),
109109
title: script ? `yarn ${script}` : '/bin/bash',
110110
script,
111111
ended: false,

packages/app/src/sandbox/eval/presets/create-react-app/utils/initLatestDevTools.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { dispatch } from 'codesandbox-api';
2-
import uuid from 'uuid';
2+
import { v1 as uuidv1 } from 'uuid';
33

44
export async function initializeReactDevToolsLatest() {
55
if (!window.opener) {
6-
const uid = uuid.v1();
6+
const uid = uuidv1();
77

88
const wall = {
99
listen(listener) {

0 commit comments

Comments
 (0)