Skip to content

Commit 6f60ac6

Browse files
NabeelahYSaraVieira
authored andcommitted
🔨 Refactored 🧠 Overmind Hacktober | /app/pages/Sandbox/ZenModeIntroductionModal/index.js (#2669)
* Refactor /app/pages/Sandbox/ZenModeIntroductionModal/index.js * Remove export default * Remove export default * Fix error
1 parent ae4513e commit 6f60ac6

File tree

3 files changed

+30
-34
lines changed

3 files changed

+30
-34
lines changed

‎packages/app/src/app/pages/Sandbox/ZenModeIntroductionModal/index.js‎

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import React, { FunctionComponent } from 'react';
2+
import { useOvermind } from 'app/overmind';
3+
import { Button } from '@codesandbox/common/lib/components/Button';
4+
import Row from '@codesandbox/common/lib/components/flex/Row';
5+
6+
import { Container, Heading, Explanation } from './elements';
7+
8+
export const ZenModeIntroduction: FunctionComponent = () => {
9+
const {
10+
actions: { modalClosed },
11+
} = useOvermind();
12+
13+
return (
14+
<Container>
15+
<Heading>Zen Mode Explained</Heading>
16+
<Explanation>
17+
Zen Mode is perfect for giving instruction videos and presentations. You
18+
can toggle the sidebar by double tapping <code>shift</code>. You can
19+
leave Zen Mode by hovering over the file name above the editor and
20+
clicking the icon on the right.
21+
</Explanation>
22+
23+
<Row justifyContent="space-around">
24+
<Button style={{ marginRight: '.5rem' }} onClick={() => modalClosed()}>
25+
Close
26+
</Button>
27+
</Row>
28+
</Container>
29+
);
30+
};

0 commit comments

Comments
 (0)