Skip to content

Commit

Permalink
fix: move useEnvContext inside settingsForm (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah authored Feb 29, 2024
1 parent 3b2c0a4 commit 86147ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/app/(user)/settings/SettingsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import LogoutButton from "~/app/components/LogoutButton";
import { UserPutBody, UserSettings } from "~/lib/types";
import { useEnvContext } from "next-runtime-env";

const { NEXT_PUBLIC_PUBPUB_URL } = useEnvContext()

type Props = UserSettings;

export default function SettingsForm({
Expand All @@ -20,6 +18,7 @@ export default function SettingsForm({
slug,
communities,
}: Props) {
const { NEXT_PUBLIC_PUBPUB_URL } = useEnvContext();
const [firstName, setFirstName] = useState(initFirstName);
const [lastName, setLastName] = useState(initLastName);
const [email, setEmail] = useState(initEmail);
Expand Down

0 comments on commit 86147ee

Please sign in to comment.