Cleanup & start transition of moduleConfig

This commit is contained in:
Sacha Weatherstone
2023-01-29 19:03:43 +10:00
parent e36032045f
commit c184c5add6
28 changed files with 297 additions and 354 deletions
@@ -51,7 +51,6 @@ export const BLE = (): JSX.Element => {
)}
</div>
<Button
iconBefore={<PlusCircleIcon className="w-4" />}
onClick={() => {
void navigator.bluetooth
.requestDevice({
@@ -65,7 +64,8 @@ export const BLE = (): JSX.Element => {
});
}}
>
New device
<PlusCircleIcon className="w-4" />
<span>New device</span>
</Button>
</div>
);
@@ -71,8 +71,9 @@ export const HTTP = (): JSX.Element => {
)}
/>
</div>
<Button iconBefore={<PlusCircleIcon className="w-4" />} type="submit">
Connect
<Button type="submit">
<PlusCircleIcon className="w-4" />
<span>Connect</span>
</Button>
</form>
);
@@ -64,14 +64,14 @@ export const Serial = (): JSX.Element => {
)}
</div>
<Button
iconBefore={<PlusCircleIcon className="w-4" />}
onClick={() => {
void navigator.serial.requestPort().then((port) => {
setSerialPorts(serialPorts.concat(port));
});
}}
>
New device
<PlusCircleIcon className="w-4" />
<span>New device</span>
</Button>
</div>
);