Skip to content

Commit

Permalink
rename env to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Oct 23, 2024
1 parent 02062db commit 31a4b4e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/app/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { type ReactNode, useEffect } from "react"
import { createSearchParams, useLocation, useNavigate } from "react-router-dom"
import { useDispatch, useSelector } from "react-redux"
import Cookies from "js-cookie"
import { SESSION_METADATA_COOKIE_NAME } from "codeforlife/env"
import { SESSION_METADATA_COOKIE_NAME } from "codeforlife/settings"
import { selectIsLoggedIn } from "codeforlife/slices/session"

import type { AppDispatch, RootState } from "./store"
Expand Down
4 changes: 2 additions & 2 deletions src/app/env.ts → src/app/settings.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import env from "codeforlife/env"
import env from "codeforlife/settings"

export * from "codeforlife/env"
export * from "codeforlife/settings"

export const LINK_CFL = env.VITE_LINK_CFL
export const LINK_GH_LOGIN = env.VITE_LINK_GH_LOGIN
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { handleResultState } from "codeforlife/utils/api"

import { type SessionMetadata, useSessionMetadata } from "../app/hooks"
import CflLogoImage from "../images/cfl_logo.png"
import { LINK_CFL } from "../app/env"
import { LINK_CFL } from "../app/settings"
import { useLogoutMutation } from "../api"
import { useRetrieveContributorQuery } from "../api/contributor"

Expand Down
2 changes: 1 addition & 1 deletion src/pages/agreementSignatures/AgreementSignatureTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { LinkIconButton } from "codeforlife/components/router"
import { OpenInNew as OpenInNewIcon } from "@mui/icons-material"
import { TablePagination } from "codeforlife/components"

import { LINK_GH_CONTRIBUTING } from "../../app/env"
import { LINK_GH_CONTRIBUTING } from "../../app/settings"
import { useLazyListAgreementSignaturesQuery } from "../../api/agreementSignature"

export interface AgreementSignatureTableProps {}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/agreementSignatures/SignLatestAgreementForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { PriorityHigh as PriorityHighIcon } from "@mui/icons-material"
import { submitForm } from "codeforlife/utils/form"

import { type AgreementSignature } from "../../api/agreementSignature"
import { LINK_GH_CONTRIBUTING } from "../../app/env"
import { LINK_GH_CONTRIBUTING } from "../../app/settings"
import { useCreateAgreementSignatureMutation } from "../../api/agreementSignature"

export interface SignLatestAgreementFormProps {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { GitHub as GitHubIcon } from "@mui/icons-material"
import { Image } from "codeforlife/components"
import { LinkButton } from "codeforlife/components/router"

import { LINK_CFL, LINK_GH_LOGIN } from "../../app/env"
import { LINK_CFL, LINK_GH_LOGIN } from "../../app/settings"
import CflLogoImage from "../../images/cfl_logo.png"
import { paths } from "../../routes"
import { useLoginMutation } from "../../api/session"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1773,9 +1773,9 @@
undici-types "~6.19.2"

"@types/node@^20.14.2":
version "20.16.15"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.16.15.tgz#826f97ca53a213d190124ca6a972206f06a88b69"
integrity sha512-DV58qQz9dBMqVVn+qnKwGa51QzCD4YM/tQM16qLKxdf5tqz5W4QwtrMzjSTbabN1cFTSuyxVYBy+QWHjWW8X/g==
version "20.17.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.17.0.tgz#d0620ba0fe4cf2a0f12351c7bdd805fc4e1f036b"
integrity sha512-a7zRo0f0eLo9K5X9Wp5cAqTUNGzuFLDG2R7C4HY2BhcMAsxgSPuRvAC1ZB6QkuUQXf0YZAgfOX2ZyrBa2n4nHQ==
dependencies:
undici-types "~6.19.2"

Expand Down Expand Up @@ -2596,7 +2596,7 @@ clsx@^2.1.0, clsx@^2.1.1:

"codeforlife@github:ocadotechnology/codeforlife-package-javascript#contributor-frontend-11":
version "2.4.1"
resolved "https://codeload.github.com/ocadotechnology/codeforlife-package-javascript/tar.gz/b9c8ab0a61ea009fd8dafa252cf8367bc24ef008"
resolved "https://codeload.github.com/ocadotechnology/codeforlife-package-javascript/tar.gz/baff529ec56e81ecf121eb6ea90d2327b0558f0c"
dependencies:
"@emotion/react" "^11.10.6"
"@emotion/styled" "^11.10.6"
Expand Down

0 comments on commit 31a4b4e

Please sign in to comment.