wip: convert more components to new ui
This commit is contained in:
@@ -11,14 +11,14 @@ export function TitleBar({ id, title }: { id?: string; title: string }) {
|
||||
className="group flex h-11 w-full shrink-0 items-center justify-between overflow-hidden px-3"
|
||||
>
|
||||
<div className="w-6" />
|
||||
<h3 className="text-sm font-medium text-zinc-200">{title}</h3>
|
||||
<h3 className="text-sm font-medium text-white">{title}</h3>
|
||||
{id ? (
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => remove.mutate(id)}
|
||||
className="inline-flex h-6 w-6 shrink translate-y-8 transform items-center justify-center rounded transition-transform duration-150 ease-in-out hover:bg-zinc-900 group-hover:translate-y-0"
|
||||
className="inline-flex h-6 w-6 shrink translate-y-8 transform items-center justify-center rounded transition-transform duration-150 ease-in-out hover:bg-white/10 group-hover:translate-y-0"
|
||||
>
|
||||
<CancelIcon width={12} height={12} className="text-zinc-300" />
|
||||
<CancelIcon className="h-3 w-3 text-white" />
|
||||
</button>
|
||||
) : (
|
||||
<div className="w-6" />
|
||||
|
||||
Reference in New Issue
Block a user