Skip to content

Commit

Permalink
delete unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
kokoakuma committed Feb 25, 2024
1 parent b97836a commit b5b3edd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/ui/components/forms/SubmitButton.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ export default {
type: 'text',
},
},
disabled: {
description: 'button on-off',
control: {
type: 'boolean'
},
},
},
}

Expand Down
5 changes: 2 additions & 3 deletions packages/ui/components/forms/SubmitButton.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { toRefs, ButtonHTMLAttributes } from 'vue'
import { ButtonHTMLAttributes } from 'vue'
import CssResetButton from '../CssResetButton.vue'
type _SubmitButtonProps = Omit<ButtonHTMLAttributes, 'disabled' | 'onClick'>
Expand All @@ -10,7 +10,6 @@ interface SubmitButtonEmit {
(event: 'on-click'): void

Check warning on line 10 in packages/ui/components/forms/SubmitButton.vue

View workflow job for this annotation

GitHub Actions / lint (18.19.0)

'event' is defined but never used
}
const props = defineProps<SubmitButtonProps>()
const { disabled = false } = toRefs(props)
const emit = defineEmits<SubmitButtonEmit>()
const handleClick = () => {
emit('on-click')
Expand Down Expand Up @@ -50,4 +49,4 @@ const handleClick = () => {
pointer-events: none;
background-color: #C9DAEA;
}
</style>
</style>

0 comments on commit b5b3edd

Please sign in to comment.