clean up code

This commit is contained in:
akcodez
2024-06-17 15:32:26 -07:00
parent ff6ea9611e
commit 936ef78aab

View File

@@ -120,8 +120,7 @@ const StyledColorModeSwitcher = styled(ColorModeSwitcher)`
padding: 10px;
`;
export function AlertBanner(props) {
const { message, button, link, show } = props;
export function AlertBanner({ message, button, link, show }) {
if (show) {
return (
<div className="top-banner fixed-top">
@@ -141,13 +140,13 @@ export function AlertBanner(props) {
return null;
}
export function TopNavCollapsible(props) {
export function TopNavCollapsible({children}) {
return (
<div
className="collapse navbar-collapse justify-content-between"
id="top-main-nav"
>
{props.children}
{children}
</div>
);
}