Skip to content

Commit

Permalink
Rewrite AuthWidget in Vue3 script setup syntax
Browse files Browse the repository at this point in the history
Bug: T354373
  • Loading branch information
guergana committed Jan 4, 2024
1 parent df9d939 commit 0dfc385
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 0dfc385

Please sign in to comment.