Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat Saxena committed Nov 15, 2024
1 parent 6b9f90d commit 640a94d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/web/app/dashboard4/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default async function Layout({
const siteInfoResponse = await siteInfoFetch.exec();
const config = {
turnstileSiteKey: process.env.TURNSTILE_SITE_KEY || "",
}
};

return (
<LayoutWithContext
Expand Down
2 changes: 1 addition & 1 deletion apps/web/components/contexts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export const ProfileContext = createContext(defaultState.profile);

export const TypefacesContext = createContext(defaultState.typefaces);

export const ServerConfigContext = createContext(defaultState.config);
export const ServerConfigContext = createContext(defaultState.config);
10 changes: 8 additions & 2 deletions apps/web/components/default-state.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { Address, Profile, SiteInfo, Typeface, ServerConfig } from "@courselit/common-models";
import {
Address,
Profile,
SiteInfo,
Typeface,
ServerConfig,
} from "@courselit/common-models";

export const defaultState: {
siteinfo: SiteInfo;
Expand Down Expand Up @@ -55,5 +61,5 @@ export const defaultState: {
typefaces: [],
config: {
turnstileSiteKey: "",
}
},
};

0 comments on commit 640a94d

Please sign in to comment.