1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 22:54:22 +00:00

Fix toolbar missing a class

This commit is contained in:
Steffo 2022-07-16 17:41:10 +02:00
parent cfe829e814
commit 06b0914a88
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -1,6 +1,6 @@
import { default as classNames } from "classnames" import { default as classNames } from "classnames"
import { ComponentPropsWithoutRef, memo, ReactNode } from "react" import { ComponentPropsWithoutRef, memo, ReactNode } from "react"
import style from "./base.module.css" import style from "./bar.module.css"
export type ToolBarProps = ComponentPropsWithoutRef<"div"> & { export type ToolBarProps = ComponentPropsWithoutRef<"div"> & {
@ -37,7 +37,7 @@ export const ToolBar = memo((props: ToolBarProps) => {
role="toolbar" role="toolbar"
{...props} {...props}
className={classNames( className={classNames(
"toolbar", style.toolbar,
props.vertical === "top" ? style.toolbarTop : null, props.vertical === "top" ? style.toolbarTop : null,
props.vertical === "bottom" ? style.toolbarBottom : null, props.vertical === "bottom" ? style.toolbarBottom : null,
props.vertical === "vadapt" ? style.toolbarVadapt : null, props.vertical === "vadapt" ? style.toolbarVadapt : null,