adds public bounty consoles without inflation, also removes the mint

This commit is contained in:
shellspeed1
2022-09-17 19:27:40 -07:00
parent 8ad8c53b91
commit 3dace329be
41 changed files with 464 additions and 259 deletions
-48
View File
@@ -1,48 +0,0 @@
/**
* THIS FILE WILL SOON BE DEPRICATED!
*/
import { useBackend } from '../backend';
import { Button, LabeledList, Section } from '../components';
import { Window } from '../layouts';
export const Mint = (props, context) => {
const { act, data } = useBackend(context);
const inserted_materials = data.inserted_materials || [];
return (
<Window>
<Window.Content>
<Section
title="Materials"
buttons={
<Button
icon={data.processing ? 'times' : 'power-off'}
content={data.processing ? 'Stop' : 'Start'}
selected={data.processing}
onClick={() => act(data.processing
? 'stoppress'
: 'startpress')} />
}>
<LabeledList>
{inserted_materials.map(material => (
<LabeledList.Item
key={material.material}
label={material.material}
buttons={(
<Button.Checkbox
checked={data.chosen_material === material.material}
onClick={() => act('changematerial', {
material_name: material.material,
})} />
)}>
{material.amount} cm³
</LabeledList.Item>
))}
</LabeledList>
</Section>
<Section>
Pressed {data.produced_coins} coins this cycle.
</Section>
</Window.Content>
</Window>
);
};