Skip to content

Commit d991ce2

Browse files
nobioma1CompuIves
authored andcommitted
🔨 Refactor 🧠 Overmind /app/pages/NewSandbox/index.js (codesandbox#2658)
* Refactor to overmind and rename file extension to tsx * Destructure NewSandbox import * Remove Comment
1 parent 31648b5 commit d991ce2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎packages/app/src/app/pages/NewSandbox/index.tsx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const createSandbox = template => {
1212
history.push(sandboxUrl({ id: template.shortid }));
1313
};
1414

15-
const NewSandbox: React.FC = () => {
15+
export const NewSandbox: React.FC = () => {
1616
const {
1717
actions: { sandboxPageMounted },
1818
} = useOvermind();
@@ -40,5 +40,3 @@ const NewSandbox: React.FC = () => {
4040
</MaxWidth>
4141
);
4242
};
43-
44-
export default NewSandbox;

‎packages/app/src/app/pages/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { ErrorBoundary } from './common/ErrorBoundary';
1313
import HTML5Backend from './common/HTML5BackendWithFolderSupport';
1414
import Modals from './common/Modals';
1515
import Sandbox from './Sandbox';
16-
import NewSandbox from './NewSandbox';
16+
import { NewSandbox } from './NewSandbox';
1717
import Dashboard from './Dashboard';
1818
import { DevAuthPage } from './DevAuth';
1919
import { Container, Content } from './elements';

0 commit comments

Comments
 (0)