mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
feat: Add minor settings improvements (#4626)
This commit is contained in:
@ -6,7 +6,7 @@ import React from "react"
|
||||
|
||||
export const Header: React.FC<{
|
||||
title: string | JSX.Element
|
||||
description: string | JSX.Element
|
||||
description?: string | JSX.Element
|
||||
secondary?: boolean
|
||||
docsHref?: string
|
||||
}> = ({ title, description, docsHref, secondary }) => {
|
||||
@ -18,7 +18,9 @@ export const Header: React.FC<{
|
||||
<h1 className={`${styles.title} ${secondary ? "secondary" : ""}`}>
|
||||
{title}
|
||||
</h1>
|
||||
<span className={styles.description}>{description}</span>
|
||||
{description && (
|
||||
<span className={styles.description}>{description}</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{docsHref && (
|
||||
|
Reference in New Issue
Block a user