This commit is contained in:
Nathan Bierema 2025-05-31 09:59:57 -04:00
parent 4b704c6ca2
commit 5712dd78f9
6 changed files with 6 additions and 9 deletions

View File

@ -9,7 +9,7 @@ export type ArrowUpIconProps = Omit<
/**
* @see https://icons.getbootstrap.com/icons/arrow-up/
*/
export function ArrowUpIcon(props: ArrowUpIconProps): JSX.Element {
export function ArrowUpIcon(props: ArrowUpIconProps): React.JSX.Element {
return (
<svg
fill="currentColor"

View File

@ -1,6 +1,6 @@
import React from 'react';
export function NoRtkQueryApi(): JSX.Element {
export function NoRtkQueryApi(): React.JSX.Element {
return (
<div
css={(theme) => ({

View File

@ -9,7 +9,7 @@ export type RegexIconProps = Omit<
// from https://commons.wikimedia.org/wiki/File:OOjs_UI_icon_regular-expression.svg
export function RegexIcon(
props: React.HTMLAttributes<SVGElement>,
): JSX.Element {
): React.JSX.Element {
return (
<svg fill="currentColor" {...props} viewBox="0 0 24 24">
<g>

View File

@ -11,7 +11,7 @@ export function SortOrderButton({
isAsc,
onChange,
id,
}: SortOrderButtonProps): JSX.Element {
}: SortOrderButtonProps): React.JSX.Element {
const handleButtonClick = (): void => {
if (!isAsc) {
onChange(true);

View File

@ -2,7 +2,7 @@ import * as React from 'react';
export type UListProps = React.HTMLAttributes<HTMLUListElement>;
export function UList(props: UListProps): JSX.Element {
export function UList(props: UListProps): React.JSX.Element {
return (
<ul
{...props}

View File

@ -177,10 +177,7 @@ const tabs: ReadonlyArray<
];
export class QueryPreview<S> extends React.PureComponent<QueryPreviewProps<S>> {
renderLabelWithCounter = (
label: React.ReactText,
counter: number,
): string => {
renderLabelWithCounter = (label: string, counter: number): string => {
let counterAsString = counter.toFixed(0);
if (counterAsString.length > 3) {