Skip to content

Commit

Permalink
reuse GearButton
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Sep 6, 2024
1 parent 17f5677 commit 0862b56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
9 changes: 0 additions & 9 deletions src/components/GearIcon.vue

This file was deleted.

11 changes: 2 additions & 9 deletions src/components/StatusArea.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<script setup lang="ts">
import { computed, ref } from 'vue'
import { NButton, NIcon, NModal, NSelect, NSpace } from 'naive-ui'

Check failure on line 3 in src/components/StatusArea.vue

View workflow job for this annotation

GitHub Actions / build

'NButton' is defined but never used

Check failure on line 3 in src/components/StatusArea.vue

View workflow job for this annotation

GitHub Actions / build

'NIcon' is defined but never used
import { InputMethodConfig } from 'fcitx5-config-vue'
import { InputMethodConfig, GearButton } from 'fcitx5-config-vue'

Check failure on line 4 in src/components/StatusArea.vue

View workflow job for this annotation

GitHub Actions / build

Member 'GearButton' of the import declaration should be sorted alphabetically
import { inputMethod, inputMethods, loading } from '../fcitx'
import GearIcon from './GearIcon.vue'
const options = computed(() => {
return inputMethods.value.map(({ displayName, name }) => ({
Expand All @@ -23,13 +22,7 @@ const showModal = ref(false)
:loading="loading"
:options="options"
/>
<NButton secondary @click="showModal = true">
<template #icon>
<NIcon>
<GearIcon />
</NIcon>
</template>
</NButton>
<GearButton @click="showModal = true" />
<NModal
v-model:show="showModal"
preset="card"
Expand Down

0 comments on commit 0862b56

Please sign in to comment.