Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Apr 29, 2024
1 parent 5fc1c4f commit dafc224
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/01_counter/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type State = typeof initialState;
type Action =
| { type: 'increment' }
| { type: 'decrement' }
| { type: 'setText'; text: string }
| { type: 'setText'; text: string };

const reducer: Reducer<State, Action> = (state, action) => {
switch (action.type) {
Expand Down
2 changes: 1 addition & 1 deletion examples/07_todolist/src/components/FilterLink.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ReactNode } from 'react';

import useVisibilityFilter from '../hooks/useVisibilityFilter';
import type{ VisibilityFilterType } from '../state';
import type { VisibilityFilterType } from '../state';

type Props = {
filter: VisibilityFilterType;
Expand Down
10 changes: 2 additions & 8 deletions src/createContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@ import {
useContext as useContextOrig,
useDebugValue,
} from 'react';
import type {
ComponentType,
Context as ContextOrig,
ReactNode,
} from 'react';
import type { ComponentType, Context as ContextOrig, ReactNode } from 'react';

import {
createContext,
useContextSelector,
useContextUpdate,
} from 'use-context-selector';
import type {
Context,
} from 'use-context-selector';
import type { Context } from 'use-context-selector';

import { createTrackedSelector } from './createTrackedSelector.js';

Expand Down

0 comments on commit dafc224

Please sign in to comment.