Skip to content

Commit

Permalink
Rewrite AuthWidget in Vue3 script setup syntax (#827)
Browse files Browse the repository at this point in the history
Bug: T354373
  • Loading branch information
guergana authored and chukarave committed Jan 12, 2024
1 parent 6c9ea9e commit 5caf8c0
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions resources/js/Components/AuthWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,12 @@

</template>

<script lang="ts">
<script setup lang="ts">
import type { PropType } from 'vue';
import { defineComponent } from 'vue';
import User from '../types/User';
export default defineComponent({
props: {
user: Object as PropType<User>
}
});
defineProps<{ user: User }>();
</script>

<style lang="scss">
Expand Down

0 comments on commit 5caf8c0

Please sign in to comment.