File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2020import { useTranslation } from 'react-i18next' ;
2121import 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 ) } `
Original file line number Diff line number Diff line change 1717
1818slug_name : quick_links
1919type : sidebar
20- version : 1.0.1
20+ version : 1.0.2
2121author : answerdev
2222link : https://github.com/apache/answer-plugins/tree/main/quick-links
You can’t perform that action at this time.
0 commit comments