Revert "feat: Show popular articles on widget home" (#7706)

This commit is contained in:
Pranav Raj S
2023-08-10 22:27:51 -07:00
committed by GitHub
parent 1a06bfd69c
commit 961d810645
22 changed files with 64 additions and 299 deletions

View File

@@ -1,10 +1,13 @@
<template>
<category-card
:title="$t('PORTAL.POPULAR_ARTICLES')"
:articles="articles.slice(0, 4)"
@view-all="$emit('view-all')"
@view="onArticleClick"
/>
<div>
<h2 class="text-base font-bold leading-6 text-slate-800 mb-0">
{{ $t('PORTAL.POPULAR_ARTICLES') }}
</h2>
<category-card
:articles="articles.slice(0, 4)"
@view-all-articles="$emit('view-all-articles')"
/>
</div>
</template>
<script>
@@ -21,11 +24,6 @@ export default {
default: '',
},
},
methods: {
onArticleClick(link) {
this.$emit('view', link);
},
},
};
</script>