Enforce some naming conventions (#4813)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-03-01 13:06:53 -05:00
1 parent dc6615f98f
commit 0b32775d40
197 files changed
+630 -634

No files matched your search

@@ -22,7 +22,7 @@ import { MenuItem } from "../menu";
import { Checkbox } from "../checkbox";
import { UserStore } from "../../../common/user-store";
interface ItemListLayoutContentProps<I extends ItemObject> {
export interface ItemListLayoutContentProps<I extends ItemObject> {
getFilters: () => Filter[];
tableId?: string;
className: IClassName;
@@ -7,11 +7,11 @@ import React from "react";
import { Icon, IconProps } from "../icon";
import { FilterType } from "./page-filters.store";
interface Props extends Partial<IconProps> {
export interface FilterIconProps extends Partial<IconProps> {
type: FilterType;
}
export function FilterIcon(props: Props) {
export function FilterIcon(props: FilterIconProps) {
const { type, ...iconProps } = props;
switch (type) {
@@ -13,13 +13,13 @@ import { FilterIcon } from "./filter-icon";
import { Icon } from "../icon";
import { searchUrlParam } from "../input";
interface Props {
export interface PageFiltersListProps {
filters?: Filter[];
}
@observer
export class PageFiltersList extends React.Component<Props> {
static defaultProps: Props = {
export class PageFiltersList extends React.Component<PageFiltersListProps> {
static defaultProps: PageFiltersListProps = {
get filters() {
return pageFilters.activeFilters;
},