mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
Updates
This commit is contained in:
parent
4b704c6ca2
commit
5712dd78f9
|
@ -9,7 +9,7 @@ export type ArrowUpIconProps = Omit<
|
||||||
/**
|
/**
|
||||||
* @see https://icons.getbootstrap.com/icons/arrow-up/
|
* @see https://icons.getbootstrap.com/icons/arrow-up/
|
||||||
*/
|
*/
|
||||||
export function ArrowUpIcon(props: ArrowUpIconProps): JSX.Element {
|
export function ArrowUpIcon(props: ArrowUpIconProps): React.JSX.Element {
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
fill="currentColor"
|
fill="currentColor"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
export function NoRtkQueryApi(): JSX.Element {
|
export function NoRtkQueryApi(): React.JSX.Element {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
css={(theme) => ({
|
css={(theme) => ({
|
||||||
|
|
|
@ -9,7 +9,7 @@ export type RegexIconProps = Omit<
|
||||||
// from https://commons.wikimedia.org/wiki/File:OOjs_UI_icon_regular-expression.svg
|
// from https://commons.wikimedia.org/wiki/File:OOjs_UI_icon_regular-expression.svg
|
||||||
export function RegexIcon(
|
export function RegexIcon(
|
||||||
props: React.HTMLAttributes<SVGElement>,
|
props: React.HTMLAttributes<SVGElement>,
|
||||||
): JSX.Element {
|
): React.JSX.Element {
|
||||||
return (
|
return (
|
||||||
<svg fill="currentColor" {...props} viewBox="0 0 24 24">
|
<svg fill="currentColor" {...props} viewBox="0 0 24 24">
|
||||||
<g>
|
<g>
|
||||||
|
|
|
@ -11,7 +11,7 @@ export function SortOrderButton({
|
||||||
isAsc,
|
isAsc,
|
||||||
onChange,
|
onChange,
|
||||||
id,
|
id,
|
||||||
}: SortOrderButtonProps): JSX.Element {
|
}: SortOrderButtonProps): React.JSX.Element {
|
||||||
const handleButtonClick = (): void => {
|
const handleButtonClick = (): void => {
|
||||||
if (!isAsc) {
|
if (!isAsc) {
|
||||||
onChange(true);
|
onChange(true);
|
||||||
|
|
|
@ -2,7 +2,7 @@ import * as React from 'react';
|
||||||
|
|
||||||
export type UListProps = React.HTMLAttributes<HTMLUListElement>;
|
export type UListProps = React.HTMLAttributes<HTMLUListElement>;
|
||||||
|
|
||||||
export function UList(props: UListProps): JSX.Element {
|
export function UList(props: UListProps): React.JSX.Element {
|
||||||
return (
|
return (
|
||||||
<ul
|
<ul
|
||||||
{...props}
|
{...props}
|
||||||
|
|
|
@ -177,10 +177,7 @@ const tabs: ReadonlyArray<
|
||||||
];
|
];
|
||||||
|
|
||||||
export class QueryPreview<S> extends React.PureComponent<QueryPreviewProps<S>> {
|
export class QueryPreview<S> extends React.PureComponent<QueryPreviewProps<S>> {
|
||||||
renderLabelWithCounter = (
|
renderLabelWithCounter = (label: string, counter: number): string => {
|
||||||
label: React.ReactText,
|
|
||||||
counter: number,
|
|
||||||
): string => {
|
|
||||||
let counterAsString = counter.toFixed(0);
|
let counterAsString = counter.toFixed(0);
|
||||||
|
|
||||||
if (counterAsString.length > 3) {
|
if (counterAsString.length > 3) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user