Compare commits

...

1 Commits

Author SHA1 Message Date
Melina Preuß da6c2657e1 list changes 2023-06-06 22:16:12 +02:00
6 changed files with 44 additions and 47 deletions
Submodule
+1
Submodule app/Database added at fe41061524
-13
View File
@@ -1,13 +0,0 @@
import * as React from "react"
interface Props { }
export const ListHeader: React.FC<Props> = props => {
const { children } = props
return (
<div className="list-header">
{children}
</div>
)
}
-34
View File
@@ -1,34 +0,0 @@
import * as React from "react"
import { List } from "../../../Data/List"
import { Just, Maybe } from "../../../Data/Maybe"
import { classListMaybe } from "../../Utilities/CSS"
import { TooltipHint } from "./TooltipHint"
interface Props {
children?: React.ReactNode
className: string
hint?: string
}
export const ListHeaderTag: React.FC<Props> = props => {
const { children, className, hint } = props
if (typeof hint === "string") {
return (
<TooltipHint
hint={hint}
target={
<div className={classListMaybe (List (Just ("has-hint"), Maybe (className)))}>
{children}
</div>
}
/>
)
}
return (
<div className={className}>
{children}
</div>
)
}
+12
View File
@@ -0,0 +1,12 @@
import { FCC } from "../../utils/react.ts"
import "./ListHeader.scss"
export const ListHeader: FCC = props => {
const { children } = props
return (
<div className="list-header">
{children}
</div>
)
}
@@ -0,0 +1,31 @@
import { classList } from "../../utils/classList.ts"
import { FCC } from "../../utils/react.ts"
interface Props {
className: string
hint?: string
}
export const ListHeaderTag: FCC<Props> = props => {
const { children, className, hint } = props
if (typeof hint === "string") {
return (
<TooltipHint
hint={hint}
target={
<div className={classList("has-hint", className)}>
{children}
</div>
}
/>
)
}
return (
<div className={className}>
{children}
</div>
)
}