Add slug to HeadLayout

This commit is contained in:
2020-12-24 13:39:07 +01:00
parent e4e72a9cfd
commit e3b91fd93c
4 changed files with 14 additions and 9 deletions
+6 -3
View File
@@ -6,7 +6,8 @@ import Navigasyon from './navigasyon'
export default function HeadLayout({
children,
title,
tab
tab,
slug
}) {
return (
<div>
@@ -51,9 +52,11 @@ export default function HeadLayout({
HeadLayout.propTypes = {
children: PropTypes.node.isRequired,
title: PropTypes.string,
tab: PropTypes.number.isRequired
tab: PropTypes.number.isRequired,
slug: PropTypes.string
}
HeadLayout.defaultProps = {
title: null
title: null,
slug: null
}