Merge branch 'dev' into dev.loading
This commit is contained in:
commit
0ac42b3500
41 changed files with 1609 additions and 1241 deletions
|
@ -1,4 +1,5 @@
|
|||
import * as React from 'react';
|
||||
import { Text } from '../Text/Text';
|
||||
|
||||
interface IMainMenuProps {
|
||||
newEditor: () => void
|
||||
|
@ -63,8 +64,16 @@ export function MainMenu(props: IMainMenuProps): JSX.Element {
|
|||
sm:top-1/2 sm:left-1/2 sm:-translate-x-1/2 sm:-translate-y-1/2'>
|
||||
<button type="button" className='mainmenu-btn' onClick={() => {
|
||||
props.newEditor();
|
||||
}}>Start from scratch</button>
|
||||
<button type="button" className='mainmenu-btn' onClick={() => setWindowState(WindowState.Load)}>Load a configuration file</button>
|
||||
}}>
|
||||
{Text({ textId: '@StartFromScratch' })}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className='mainmenu-btn'
|
||||
onClick={() => setWindowState(WindowState.Load)}
|
||||
>
|
||||
{Text({ textId: '@LoadConfigFile' })}
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue