mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-06 15:10:29 +00:00
部分组件bug修复
This commit is contained in:
@@ -6,14 +6,23 @@ import { siteConfig } from '@/lib/config'
|
||||
* @param {boolean} sticky - 是否粘性定位
|
||||
* @returns {JSX.Element | null} - 返回渲染的 JSX 元素或 null
|
||||
*/
|
||||
export default function WWAds({ orientation = 'vertical', sticky = false, className }) {
|
||||
export default function WWAds({
|
||||
orientation = 'vertical',
|
||||
sticky = false,
|
||||
className
|
||||
}) {
|
||||
const AD_WWADS_ID = siteConfig('AD_WWADS_ID')
|
||||
|
||||
if (!AD_WWADS_ID) {
|
||||
return null
|
||||
}
|
||||
|
||||
return <div data-id={AD_WWADS_ID} className={`wwads-cn
|
||||
return (
|
||||
<div
|
||||
data-id={AD_WWADS_ID}
|
||||
className={`wwads-cn
|
||||
${orientation === 'vertical' ? 'wwads-vertical' : 'wwads-horizontal'}
|
||||
${sticky ? 'wwads-sticky' : ''} z-10 ${className || ''}`} />
|
||||
${sticky ? 'wwads-sticky' : ''} z-10 ${className || ''}`}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user