This commit is contained in:
Darren Clarke 2024-03-20 17:51:21 +01:00
parent b8c6e893ff
commit b09cc82544
167 changed files with 2196 additions and 1302 deletions

View file

@ -8,7 +8,7 @@ import {
useState,
PropsWithChildren,
} from "react";
import { colors, typography } from "leafcutter-common/styles/theme";
import { colors, typography } from "leafcutter-ui/styles/theme";
const basePath = process.env.GITLAB_CI
? "/link/link-stack/apps/leafcutter"
@ -29,7 +29,7 @@ const AppContext = createContext({
setFoundCount: null as any,
});
export const AppProvider: FC<PropsWithChildren> = ({ children }) => {
export const LeafcutterProvider: FC<PropsWithChildren> = ({ children }) => {
const initialState = {
incidentType: {
display: "Incident Type",
@ -156,6 +156,6 @@ export const AppProvider: FC<PropsWithChildren> = ({ children }) => {
);
};
export function useAppContext() {
export function useLeafcutterContext() {
return useContext(AppContext);
}