resolved issue?

This commit is contained in:
Heli-o 2024-10-14 18:47:22 +02:00
parent 284662fe36
commit 88f3c05ec6

View file

@ -2,7 +2,7 @@ import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } fro
import style from "./styles/customfooter.scss" import style from "./styles/customfooter.scss"
import btnstyle from "./styles/buttons8831.scss" import btnstyle from "./styles/buttons8831.scss"
import FooterLinksConstructor from "./Footer_links" import FooterLinksConstructor from "./Footer_links"
import Btn8831 from "./Btn8831" import Btn8831Constructor from "./Btn8831"
interface Options { interface Options {
links: Record<string, string> links: Record<string, string>
@ -11,12 +11,13 @@ interface Options {
export default ((opts?: Options) => { export default ((opts?: Options) => {
const FooterLinks = FooterLinksConstructor(opts) const FooterLinks = FooterLinksConstructor(opts)
const Btn8831 = Btn8831Constructor()
const CustomFooter: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => { const CustomFooter: QuartzComponent = (props: QuartzComponentProps) => {
return ( return (
<footer class={`${displayClass ?? ""}`}> <footer class={`${props.displayClass ?? ""}`}>
<FooterLinks displayClass={displayClass} cfg={cfg} /> <FooterLinks {...props} />
<Btn8831 displayClass={displayClass} cfg={cfg} /> <Btn8831 {...props} />
</footer> </footer>
) )
} }