Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/src/asciidoc/Section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { Link16Icon } from '@/icons/react'
import { Content, type SectionBlock, parse } from '@oxide/react-asciidoc'
import cn from 'classnames'
import { createElement } from 'react'
import { type JSX, createElement } from 'react'

// We need to remove anchors from the section title (and table of contents) because having
// an anchor within an anchor causes a client/server render mismatch
Expand Down
4 changes: 3 additions & 1 deletion components/src/ui/checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export const Checkbox = ({
<input
className={cn(inputStyle, className)}
type="checkbox"
ref={(el) => el && (el.indeterminate = !!indeterminate)}
ref={(el) => {
if (el) el.indeterminate = !!indeterminate
}}
{...inputProps}
/>
{inputProps.checked && !indeterminate && <Check />}
Expand Down
2 changes: 1 addition & 1 deletion components/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright Oxide Computer Company
*/
import cn from 'classnames'
import { createElement } from 'react'
import { type JSX, createElement } from 'react'

const titleCase = (text: string): string => {
return text.replace(
Expand Down
Loading
Loading