chore:(deps): bump prettier from 2.3.0 to 2.3.1 in /explorer (#17785)
* chore:(deps): bump prettier from 2.3.0 to 2.3.1 in /explorer Bumps [prettier](https://github.com/prettier/prettier) from 2.3.0 to 2.3.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.3.0...2.3.1) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * fix formatting Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Justin Starry <justin@solana.com>
This commit is contained in:
@@ -46,8 +46,9 @@ function reconcile(
|
||||
}
|
||||
|
||||
export const StateContext = React.createContext<State | undefined>(undefined);
|
||||
export const DispatchContext =
|
||||
React.createContext<Dispatch | undefined>(undefined);
|
||||
export const DispatchContext = React.createContext<Dispatch | undefined>(
|
||||
undefined
|
||||
);
|
||||
|
||||
type RewardsProviderProps = { children: React.ReactNode };
|
||||
|
||||
|
@@ -119,8 +119,9 @@ function parseQuery(query: URLSearchParams): Cluster {
|
||||
}
|
||||
|
||||
type SetShowModal = React.Dispatch<React.SetStateAction<boolean>>;
|
||||
const ModalContext =
|
||||
React.createContext<[boolean, SetShowModal] | undefined>(undefined);
|
||||
const ModalContext = React.createContext<[boolean, SetShowModal] | undefined>(
|
||||
undefined
|
||||
);
|
||||
const StateContext = React.createContext<State | undefined>(undefined);
|
||||
const DispatchContext = React.createContext<Dispatch | undefined>(undefined);
|
||||
|
||||
|
@@ -53,24 +53,25 @@ const initialDashboardInfo: DashboardInfo = {
|
||||
};
|
||||
|
||||
type SetActive = React.Dispatch<React.SetStateAction<boolean>>;
|
||||
const StatsProviderContext =
|
||||
React.createContext<
|
||||
| {
|
||||
setActive: SetActive;
|
||||
setTimedOut: Function;
|
||||
retry: Function;
|
||||
active: boolean;
|
||||
}
|
||||
| undefined
|
||||
>(undefined);
|
||||
const StatsProviderContext = React.createContext<
|
||||
| {
|
||||
setActive: SetActive;
|
||||
setTimedOut: Function;
|
||||
retry: Function;
|
||||
active: boolean;
|
||||
}
|
||||
| undefined
|
||||
>(undefined);
|
||||
|
||||
type DashboardState = { info: DashboardInfo };
|
||||
const DashboardContext =
|
||||
React.createContext<DashboardState | undefined>(undefined);
|
||||
const DashboardContext = React.createContext<DashboardState | undefined>(
|
||||
undefined
|
||||
);
|
||||
|
||||
type PerformanceState = { info: PerformanceInfo };
|
||||
const PerformanceContext =
|
||||
React.createContext<PerformanceState | undefined>(undefined);
|
||||
const PerformanceContext = React.createContext<PerformanceState | undefined>(
|
||||
undefined
|
||||
);
|
||||
|
||||
type Props = { children: React.ReactNode };
|
||||
export function SolanaClusterStatsProvider({ children }: Props) {
|
||||
|
@@ -19,8 +19,9 @@ type State = Cache.State<Details>;
|
||||
type Dispatch = Cache.Dispatch<Details>;
|
||||
|
||||
export const StateContext = React.createContext<State | undefined>(undefined);
|
||||
export const DispatchContext =
|
||||
React.createContext<Dispatch | undefined>(undefined);
|
||||
export const DispatchContext = React.createContext<Dispatch | undefined>(
|
||||
undefined
|
||||
);
|
||||
|
||||
type DetailsProviderProps = { children: React.ReactNode };
|
||||
export function DetailsProvider({ children }: DetailsProviderProps) {
|
||||
|
Reference in New Issue
Block a user