Skip to content

Commit da57274

Browse files
committed
fix: quick-links add divider
1 parent 00855eb commit da57274

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

quick-links/Component.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import { useTranslation } from 'react-i18next';
2121
import useSWR from 'swr'
2222

23-
const Component = ({ navigate, request }) => {
23+
const Component = ({ navigate, request, hasDivider }) => {
2424

2525
const { t } = useTranslation('plugin', {
2626
keyPrefix: 'quick_links.frontend',
@@ -54,6 +54,7 @@ const Component = ({ navigate, request }) => {
5454

5555
return (
5656
<div>
57+
{hasDivider && <div className="border-top mt-3" />}
5758
<div className="py-2 px-3 mt-3 small fw-bold quick-link">{t('quick_links')}</div>
5859
{tags?.map((tag) => {
5960
const href = `/tags/${encodeURIComponent(tag.slug_name)}`

quick-links/info.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717

1818
slug_name: quick_links
1919
type: sidebar
20-
version: 1.0.1
20+
version: 1.0.2
2121
author: answerdev
2222
link: https://github.com/apache/answer-plugins/tree/main/quick-links

0 commit comments

Comments
 (0)