border-bottom should be configurable and off for transparent

This commit is contained in:
Desmond Grealy
2023-01-01 15:57:19 -08:00
parent 8b7e9bd868
commit 862a0ac3fd
2 changed files with 14 additions and 2 deletions
@@ -21,4 +21,15 @@ const Template = (args) => {
};
export const Default = Template.bind({});
Default.args = { session: { data: { user: { name: "StoryBook user" } }, status: "authenticated" }, transparent: false };
Default.args = {
session: {
data: {
user: {
name: "StoryBook user"
}
},
status: "authenticated"
},
transparent: false,
borderClass: undefined
};
+2 -1
View File
@@ -54,9 +54,10 @@ function AccountButton() {
}
export function Header(props) {
const borderClass = props.transparent ? "" : props.borderClass ?? "border-b border-gray-100";
return (
<nav>
<Container className="flex justify-evenly py-8 px-10 border-b">
<Container className={`flex justify-evenly py-8 px-10 ${borderClass}`}>
<div className="relative z-10 flex items-center gap-16">
<Link href="/" aria-label="Home" className="flex items-center">
<Image src="/images/logos/logo.svg" className="mx-auto object-fill" width="50" height="50" alt="logo" />