import/export theme
This commit is contained in:
parent
e854f77bdc
commit
d4d2b6397c
1 changed files with 56 additions and 17 deletions
|
|
@ -7,6 +7,7 @@ import Column from './components/Column.tsx';
|
|||
import Button from './components/Button.tsx';
|
||||
import Row from './components/Row.tsx';
|
||||
import './MapChooser.css';
|
||||
import Spacer from './components/Spacer.tsx';
|
||||
|
||||
function base64ToArrayBuffer(base64: string) {
|
||||
const binaryString = atob(base64);
|
||||
|
|
@ -57,7 +58,7 @@ function MapChooserDialog({mapNames, onClose, onConfirm}: {
|
|||
readonly onClose: () => void;
|
||||
}) {
|
||||
const [chosenMap, setChosenMap] = useState<string>();
|
||||
return <Dialog title='Choose a map' onClose={onClose}>
|
||||
return <Dialog title="Choose a map" onClose={onClose}>
|
||||
<Row className="MapChooser-Row overflow-scroll">
|
||||
{mapNames.map(name => <MapPreview
|
||||
key={name}
|
||||
|
|
@ -67,7 +68,7 @@ function MapChooserDialog({mapNames, onClose, onConfirm}: {
|
|||
/>)}
|
||||
</Row>
|
||||
<Row>
|
||||
<div className="flex-grow"/>
|
||||
<Spacer/>
|
||||
<Button text="« cancel" onClick={onClose}/>
|
||||
<Button text="√ confirm" disabled={!chosenMap} onClick={() => chosenMap && onConfirm(chosenMap)}/>
|
||||
</Row>
|
||||
|
|
|
|||
Reference in a new issue