Skip to content

Commit

Permalink
fix: Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ramedina86 committed Mar 11, 2024
1 parent ba2db40 commit 4503230
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ui/src/core_components/input/CoreSwitchInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<div
class="switch"
:class="{ on: toggleValue }"
@click="handleToggle"
tabindex="0"
role="switch"
@keydown.enter.space="handleToggle"
:aria-checked="toggleValue"
@click="handleToggle"
@keydown.enter.space="handleToggle"
>
<div class="toggle"></div>
</div>
Expand All @@ -18,9 +18,9 @@
</template>

<script lang="ts">
import { computed, inject, Ref } from "vue";
import { inject, Ref } from "vue";
import { ref } from "vue";
import { FieldCategory, FieldType } from "../../streamsyncTypes";
import { FieldType } from "../../streamsyncTypes";
import {
accentColor,
primaryTextColor,
Expand Down Expand Up @@ -72,8 +72,7 @@ const fields = inject(injectionKeys.evaluatedFields);
const rootEl: Ref<HTMLElement> = ref(null);
const ss = inject(injectionKeys.core);
const instancePath = inject(injectionKeys.instancePath);
const flattenedInstancePath = inject(injectionKeys.flattenedInstancePath);
const { formValue, handleInput } = useFormValueBroker(ss, instancePath, rootEl);
const { handleInput } = useFormValueBroker(ss, instancePath, rootEl);
const toggleValue = ref(false);
function handleToggle() {
Expand Down

0 comments on commit 4503230

Please sign in to comment.