mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-09-03 18:05:53 +00:00
Enabled recommended-requiring-type-checking as result type fixes provided (#632)
* Enabled recommended-requiring-type-checking * from .cjs to .js * check * check * check * check * A lot of types aligned and refactored * More strict types * Improvement * Improvements * Improvements * Fixed routs * Fixed import types
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import type { ReactNode } from "react";
|
||||
import { createContext, useState, useContext } from "react";
|
||||
|
||||
export interface AppContextData {
|
||||
@@ -17,11 +18,7 @@ export const useAppContext = (): AppContextData => {
|
||||
return context;
|
||||
};
|
||||
|
||||
export const AppContextProvider = ({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) => {
|
||||
export const AppContextProvider = ({ children }: { children: ReactNode }) => {
|
||||
const [selectedRepo, setSelectedRepo] = useState("");
|
||||
const [clusterMode, setClusterMode] = useState(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user