Skip to content

Commit

Permalink
fix(marketplace): Ditch credit/certificate switcher, rename My Credit…
Browse files Browse the repository at this point in the history
…s to My Certificates where applicable
  • Loading branch information
jschill committed Dec 21, 2023
1 parent 3545e16 commit 2a3b652
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
4 changes: 2 additions & 2 deletions frontend/marketplace/src/components/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const copyAddress = async () => {
</div>
<div class="menu py-2 items-center w-full">
<a href="/certificate" class="btn nav-dropdown-button">
My Credits
My Certificates
</a>
<a
href="/profile"
Expand Down Expand Up @@ -293,7 +293,7 @@ const copyAddress = async () => {

<div class="menu py-2 items-center w-full">
<a href="/certificate" class="btn nav-dropdown-button">
My Credits
My Certificates
</a>
<a
href="/profile"
Expand Down
28 changes: 4 additions & 24 deletions frontend/marketplace/src/pages/CertificatesAndCreditsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,10 @@ const activeTab = ref("MyCertificates");
</script>
<template>
<div class="p-5 md:px-[10%] min-h-[60vh] text-white font-Inter">
<div
class="grid grid-cols-2 gap-4 max-w-[350px] bg-tabGray w-full items-center rounded-xl border-[1.5px] border-borderGray p-1"
>
<div
class="custom-tab"
:class="{ 'bg-greenTabs': activeTab === 'MyCertificates' }"
@click="activeTab = 'MyCertificates'"
>
My certificates
</div>
<div
class="custom-tab"
:class="{ 'bg-greenTabs': activeTab === 'MyCredits' }"
@click="activeTab = 'MyCredits'"
>
My credits
</div>
</div>
<template v-if="activeTab === 'MyCertificates'">
<CertificateTabContent />
</template>
<template v-if="activeTab === 'MyCredits'">
<CreditTabContent />
</template>
<h1 class="text-title18 md:text-title24 text-white mb-5">
My certificates
</h1>
<CertificateTabContent />
</div>
</template>
<style scoped></style>

0 comments on commit 2a3b652

Please sign in to comment.