Skip to content

Commit

Permalink
fix: borrower status card fix (#5677)
Browse files Browse the repository at this point in the history
* fix: borrower status card fixed

* fix: navigation issues fixed
  • Loading branch information
roger-in-kiva authored Nov 12, 2024
1 parent 82a51c1 commit c725082
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
11 changes: 0 additions & 11 deletions src/components/MyKiva/BorrowerStatusCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
</p>
<KvMaterialIcon
class="tw-w-3 tw-h-3 tw-text-action md:tw-hidden"
@click="open = !open"
:icon="open ? mdiChevronUp : mdiChevronDown"
/>
</button>
Expand Down Expand Up @@ -99,7 +98,6 @@ import {
toRefs,
defineProps,
inject,
onMounted,
} from 'vue';
import {
FUNDRAISING,
Expand All @@ -116,8 +114,6 @@ const props = defineProps({
});
const { loan } = toRefs(props);
const isMobile = ref(false);
const open = ref(false);
const borrowerName = computed(() => loan.value?.name ?? '');
Expand Down Expand Up @@ -227,13 +223,6 @@ const toggleWhatIsNext = () => {
}
open.value = !open.value;
};
onMounted(() => {
isMobile.value = document.documentElement.clientWidth < 735;
if (!isMobile.value) {
open.value = true;
}
});
</script>
<style lang="postcss" scoped>
Expand Down
7 changes: 6 additions & 1 deletion src/components/MyKiva/MyKivaHero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
</div>
</div>
<button
:disabled="isLoading"
@click="$emit('show-navigation')"
>
<kv-material-icon
Expand All @@ -58,7 +59,11 @@ const props = defineProps({
userInfo: {
type: Object,
default: () => ({}),
}
},
isLoading: {
type: Boolean,
default: false,
},
});
const { userInfo } = toRefs(props);
Expand Down
2 changes: 1 addition & 1 deletion src/components/MyKiva/MyKivaNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const publicId = computed(() => {
});
const open = ref(false);
const profileSettingsOptions = ref([
const profileSettingsOptions = computed(() => [
{ link: '/settings/account', text: 'Account' },
{ link: '/settings/security', text: 'Security and login' },
{ link: '/settings/email', text: 'Email' },
Expand Down
1 change: 1 addition & 0 deletions src/pages/Portfolio/MyKiva/MyKivaPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/>
<MyKivaHero
:user-info="userInfo"
:is-loading="isLoading"
@show-navigation="handleShowNavigation"
/>
<MyKivaProfile
Expand Down

0 comments on commit c725082

Please sign in to comment.