22import { storeToRefs } from ' pinia' ;
33
44import { ArrowTopRightOnSquareIcon } from ' @heroicons/vue/24/solid' ;
5- import { BrandButton } from ' @unraid/ui' ;
5+ import { Button } from ' @unraid/ui' ;
66
7- import type { BrandButtonProps } from ' @unraid/ui' ;
7+ import type { ButtonProps } from ' @unraid/ui' ;
88import type { ComposerTranslation } from ' vue-i18n' ;
99
1010import ActivationPartnerLogo from ' ~/components/Activation/PartnerLogo.vue' ;
@@ -24,25 +24,25 @@ const purchaseStore = usePurchaseStore();
2424const title = computed <string >(() => props .t (" Let's activate your Unraid OS License" ));
2525const description = computed <string >(() =>
2626 props .t (
27- ` On the following screen, your license will be activated. You’ ll then create an Unraid.net Account to manage your license going forward. `
27+ ` On the following screen, your license will be activated. You' ll then create an Unraid.net Account to manage your license going forward. `
2828 )
2929);
30- const docsButtons = computed <BrandButtonProps []>(() => {
30+ const docsButtons = computed <ButtonProps []>(() => {
3131 return [
3232 {
33- variant: ' underline ' ,
33+ variant: ' link ' ,
3434 external: true ,
3535 href: ' https://docs.unraid.net/unraid-os/faq/licensing-faq/' ,
3636 iconRight: ArrowTopRightOnSquareIcon ,
37- size: ' 14px ' ,
37+ size: ' md ' ,
3838 text: props .t (' More about Licensing' ),
3939 },
4040 {
41- variant: ' underline ' ,
41+ variant: ' link ' ,
4242 external: true ,
4343 href: ' https://docs.unraid.net/account/' ,
4444 iconRight: ArrowTopRightOnSquareIcon ,
45- size: ' 14px ' ,
45+ size: ' md ' ,
4646 text: props .t (' More about Unraid.net Accounts' ),
4747 },
4848 ];
@@ -74,7 +74,7 @@ const handleKeydown = (event: KeyboardEvent) => {
7474
7575 if (sequenceIndex === keySequence .length ) {
7676 activationCodeStore .setActivationModalHidden (true );
77- window .location .href = ' /Tools/Registration' ;
77+ window .location .href = ' /Tools/Registration' ;
7878 }
7979};
8080
@@ -108,11 +108,9 @@ onUnmounted(() => {
108108
109109 <template #footer >
110110 <div class =" w-full flex gap-8px justify-center mx-auto" >
111- <BrandButton
112- :text =" t('Activate Now')"
113- :icon-right =" ArrowTopRightOnSquareIcon"
114- @click =" purchaseStore.activate"
115- />
111+ <Button :icon =" ArrowTopRightOnSquareIcon" @click =" purchaseStore.activate" >{{
112+ t('Activate Now')
113+ }}</Button >
116114 </div >
117115 </template >
118116
@@ -121,7 +119,7 @@ onUnmounted(() => {
121119 <ActivationSteps :active-step =" 2" class =" hidden sm:flex mt-6" />
122120
123121 <div class =" flex flex-col sm:flex-row justify-center gap-4 mx-auto w-full" >
124- <BrandButton v-for =" button in docsButtons" :key =" button.text " v-bind =" button" / >
122+ <Button v-for =" ( button, index) in docsButtons" :key =" index " v-bind =" button" ></ Button >
125123 </div >
126124 </div >
127125 </template >
0 commit comments