web/satellite: migrate OverviewContainer to use SFC composition api

Change-Id: I8b0412cec1b16866d172b6ba6816da1145e6c969
This commit is contained in:
Vitalii 2023-04-04 15:04:26 +03:00 committed by Vitalii Shpital
parent f5020de57c
commit 957e0824cc

View File

@ -40,36 +40,27 @@
</div>
</template>
<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator';
<script setup lang="ts">
import VButton from '@/components/common/VButton.vue';
import WebIcon from '@/../static/images/onboardingTour/web.svg';
import CLIIcon from '@/../static/images/onboardingTour/cli.svg';
// @vue/component
@Component({
components: {
VButton,
WebIcon,
CLIIcon,
},
})
export default class OverviewContainer extends Vue {
@Prop({ default: false })
public readonly isWeb: boolean;
@Prop({ default: '' })
public readonly title: string;
@Prop({ default: '' })
public readonly info: string;
@Prop({ default: false })
public readonly isDisabled: boolean;
@Prop({ default: '' })
public readonly buttonLabel: string;
@Prop({ default: () => () => {} })
public readonly onClick: () => void;
}
const props = withDefaults(defineProps<{
isWeb: boolean;
title: string;
info: string;
isDisabled: boolean;
buttonLabel: string;
onClick: () => void;
}>(), {
isWeb: false,
title: '',
info: '',
isDisabled: false,
buttonLabel: '',
onClick: () => {},
});
</script>
<style scoped lang="scss">