Skip to content

Commit 48a38b8

Browse files
author
olgakup
committed
devop: add slots for lang switch
1 parent e759231 commit 48a38b8

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

src/libs/layouts/MewFooter.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
<!-- Consent Button -->
116116
<MewSwitchDataTracking :useI18n="(useI18n)" id="consent-switch-footer-menu" :user-consent="userConsent"
117117
@update:consent="(val) => emit('update:consent', val)" class="mb-[42px]" />
118+
<slot name="lang-switch-footer"></slot>
118119
<p class="mb-[10px]">
119120
© {{ year }} MyEtherWallet. All rights reserved.
120121
</p>

src/libs/layouts/MewHeader.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,11 @@
144144
<mew-mobile-menu :useI18n="(useI18n)" :is-open="isOpenMobileMenu" :amplitude="$amplitude"
145145
:link-component="props.linkComponent" :curr-project="props.currProject" :user-consent="props.userConsent"
146146
:curr-url="ampUrl" @update:consent="(val) => emit('update:consent', val)"
147-
@close-mobile-menu="isOpenMobileMenu = false" />
147+
@close-mobile-menu="isOpenMobileMenu = false">
148+
<template #lang-switch>
149+
<slot name="lang-switch-mobile" />
150+
</template>
151+
</mew-mobile-menu>
148152
</div>
149153
</template>
150154
<script setup lang="ts">

src/libs/layouts/MewMobileMenu.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@
127127
<!-- Consent Button -->
128128
<MewSwitchDataTracking :useI18n="(useI18n)" id="consent-switch-mobile-menu" :user-consent="userConsent"
129129
@update:consent="emitConsentUpdate" />
130+
<!-- Change Language Slot-->
131+
<slot name="lang-switch"></slot>
130132
</div>
131133
</div>
132134
</Transition>

0 commit comments

Comments
 (0)