Skip to content

Commit

Permalink
chore: run lint:fix on codebase (refinedev#3644)
Browse files Browse the repository at this point in the history
  • Loading branch information
BatuhanW authored Feb 21, 2023
1 parent d0b97fd commit 930eb6a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/pixels/src/components/color-select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from "react";
import { colors } from "utility";

export const ColorSelect: React.FC<{
selected: typeof colors[number];
onChange: (color: typeof colors[number]) => void;
selected: (typeof colors)[number];
onChange: (color: (typeof colors)[number]) => void;
}> = ({ selected, onChange }) => {
return (
<div
Expand Down
2 changes: 1 addition & 1 deletion examples/pixels/src/pages/canvases/show.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const { Title } = Typography;
export const CanvasShow: React.FC = () => {
const { Link, useLocation } = useRouterContext();
const { pathname } = useLocation();
const [color, setColor] = useState<typeof colors[number]>("black");
const [color, setColor] = useState<(typeof colors)[number]>("black");
const { modalProps, show, close } = useModal();

const { data: identity } = useGetIdentity();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ import {
declare module "react-table" {
// take this file as-is, or comment out the sections that don't apply to your plugin configuration

export interface TableOptions<
D extends Record<string, unknown>,
> extends UseExpandedOptions<D>,
export interface TableOptions<D extends Record<string, unknown>>
extends UseExpandedOptions<D>,
UseFiltersOptions<D>,
UseGlobalFiltersOptions<D>,
UseGroupByOptions<D>,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/swizzle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const action = async (_options: OptionValues) => {
);

const { selectedPackage } = await inquirer.prompt<{
selectedPackage: typeof packageConfigs[number];
selectedPackage: (typeof packageConfigs)[number];
}>([
{
type: "autocomplete",
Expand Down
2 changes: 1 addition & 1 deletion packages/mantine/src/hooks/form/useForm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const useForm = <
}
}, [isValuesChanged]);

const onSubmit: typeof useMantineFormResult["onSubmit"] =
const onSubmit: (typeof useMantineFormResult)["onSubmit"] =
(handleSubmit, handleValidationFailure) => async (e) => {
setWarnWhen(false);
return await onMantineSubmit(
Expand Down

0 comments on commit 930eb6a

Please sign in to comment.