-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathTestTab.tsx
More file actions
33 lines (30 loc) · 898 Bytes
/
TestTab.tsx
File metadata and controls
33 lines (30 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { IconNames } from '@blueprintjs/icons';
import type { SideContentTab } from './types';
const TestTab = () => (
<div
style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
marginBottom: '5px'
}}
>
<h2>Source Academy Tab Development Server</h2>
<p>
Run some code that imports modules in the editor on the left. You should
see the corresponding module tab spawn.
<br />
Whenever you make changes to the tab, the server should automatically
reload and show the changes that you've made <br />
If that does not happen, you can click the refresh button to manually
reload tabs
</p>
</div>
);
const testTabContent: SideContentTab = {
id: 'test',
label: 'Welcome to the tab development server!',
iconName: IconNames.LabTest,
body: <TestTab />
};
export default testTabContent;