Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Marisa-Jenkins committed Dec 20, 2023
1 parent 33d4b1c commit 89d685e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 49 deletions.
16 changes: 7 additions & 9 deletions src/components/connection-prompt/ConnectDialogContainer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -119,25 +119,24 @@
onNextClick={() =>
($connectionDialogState.connectionState = ConnectDialogStates.WEARING_SETUP)} />
{:else if $connectionDialogState.connectionState === ConnectDialogStates.WEARING_SETUP}
{#if currentStage === 'usb'}
<MicrobitWearingInstructionDialog
{#if currentStage === 'usb'}
<MicrobitWearingInstructionDialog
{currentStage}
onBackClick={() =>
($connectionDialogState.connectionState =
ConnectDialogStates.START_BLUETOOTH)}
onNextClick={() =>
($connectionDialogState.connectionState =
ConnectDialogStates.CONNECT_CABLE)} />
{:else if currentStage === 'usb1'}
<MicrobitWearingInstructionDialog
{:else if currentStage === 'usb1'}
<MicrobitWearingInstructionDialog
{currentStage}
onBackClick={() =>
($connectionDialogState.connectionState =
ConnectDialogStates.START_RADIO)}
($connectionDialogState.connectionState = ConnectDialogStates.START_RADIO)}
onNextClick={() =>
($connectionDialogState.connectionState =
ConnectDialogStates.CONNECT_CABLE)} />
{/if}
{/if}
{:else if $connectionDialogState.connectionState === ConnectDialogStates.CONNECT_CABLE}
{#if currentStage === 'usb'}
<ConnectCableDialog
Expand All @@ -146,8 +145,7 @@
($connectionDialogState.connectionState =
ConnectDialogStates.CONNECT_BATTERY)}
onBackClick={() =>
($connectionDialogState.connectionState =
ConnectDialogStates.WEARING_SETUP)}
($connectionDialogState.connectionState = ConnectDialogStates.WEARING_SETUP)}
onNextClick={() =>
($connectionDialogState.connectionState =
ConnectDialogStates.CONNECT_TUTORIAL_USB)} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,45 @@
SPDX-License-Identifier: MIT
-->

<script lang="ts">
import StandardButton from '../StandardButton.svelte';
import { t } from '../../i18n.ts';
import microbitStrapImage from '../../imgs/microbit_strap.png';
import microbitHolderImage from '../../imgs/microbit_holder.png';
<script lang="ts">
import StandardButton from '../StandardButton.svelte';
import { t } from '../../i18n.ts';
import microbitStrapImage from '../../imgs/microbit_strap.png';
import microbitHolderImage from '../../imgs/microbit_holder.png';
export let onNextClick: () => void;
export let onBackClick: () => void;
export let currentStage: string;
export let onNextClick: () => void;
export let onBackClick: () => void;
export let currentStage: string;
const instructionsVideoLink = "https://youtu.be/PC1rzFFhggU?feature=shared&t=63";
const instructionsVideoLink = 'https://youtu.be/PC1rzFFhggU?feature=shared&t=63';
</script>

</script>

<main>
<div class="w-200 leading-10">
<p class="font-bold text-2xl text-left pb-5">
{#if currentStage === 'usb'}
{$t('connectMB.wearingSetup.bluetooth.heading')}
{:else if currentStage === 'usb1'}
{$t('connectMB.wearingSetup.radioConnection.heading')}
{/if}
</p>
<p class="leading-normal">
<a class="text-link" href={instructionsVideoLink} target="_blank"
>{$t('connectMB.wearingSetup.subtitle1')}</a>
{$t('connectMB.wearingSetup.subtitle2')}
</p>
<div class="flex flex-col font-semibold text-center py-10">
<img src={microbitHolderImage} class="w-50 self-center pt-10"/>
<p>{$t('connectMB.wearingSetup.requirements1')}</p>
<img src={microbitStrapImage} class="w-150 self-center pt-10"/>
<p>{$t('connectMB.wearingSetup.requirements2')}</p>
</div>
<main>
<div class="w-200 leading-10">
<p class="font-bold text-2xl text-left pb-5">
{#if currentStage === 'usb'}
{$t('connectMB.wearingSetup.bluetooth.heading')}
{:else if currentStage === 'usb1'}
{$t('connectMB.wearingSetup.radioConnection.heading')}
{/if}
</p>
<p class="leading-normal">
<a class="text-link" href={instructionsVideoLink} target="_blank"
>{$t('connectMB.wearingSetup.subtitle1')}</a>
{$t('connectMB.wearingSetup.subtitle2')}
</p>
<div class="flex flex-col font-semibold text-center py-10">
<img src={microbitHolderImage} class="w-50 self-center pt-10" />
<p>{$t('connectMB.wearingSetup.requirements1')}</p>
<img src={microbitStrapImage} class="w-150 self-center pt-10" />
<p>{$t('connectMB.wearingSetup.requirements2')}</p>
</div>
<div class="flex">
<div class="flex w-full justify-end gap-x-5">
<StandardButton onClick={onBackClick}>{$t('connectMB.backButton')}</StandardButton>
<StandardButton type="primary" onClick={onNextClick}
>{$t('connectMB.nextButton')}</StandardButton>
</div>
</div>
<div class="flex">
<div class="flex w-full justify-end gap-x-5">
<StandardButton onClick={onBackClick}>{$t('connectMB.backButton')}</StandardButton>
<StandardButton type="primary" onClick={onNextClick}
>{$t('connectMB.nextButton')}</StandardButton>
</div>
</main>
</div>
</main>
1 change: 0 additions & 1 deletion src/messages/ui.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@
"connectMB.wearingSetup.requirements1": "micro:bit holder",
"connectMB.wearingSetup.requirements2": "Wearable strap",


"connectMB.connectCableMB1.heading": "Connect cable to micro:bit 1",
"connectMB.connectCableMB1.subtitle": "Connect the first micro:bit to this computer with a USB cable so that the <brand name> program can be downloaded to it.",

Expand Down

0 comments on commit 89d685e

Please sign in to comment.