use consistent React import style

This commit is contained in:
Brian Beck 2025-11-19 01:49:26 -05:00
parent 8cb98a5b46
commit 660addc5da
2 changed files with 12 additions and 8 deletions

View file

@ -1,3 +1,4 @@
import { ReactNode } from "react";
import "./style.css";
export const metadata = {
@ -5,11 +6,7 @@ export const metadata = {
description: "Tribes 2 forever.",
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en">
<body>{children}</body>

View file

@ -1,6 +1,13 @@
import React, { useContext, useEffect, useMemo, useState } from "react";
import {
createContext,
ReactNode,
useContext,
useEffect,
useMemo,
useState,
} from "react";
const SettingsContext = React.createContext(null);
const SettingsContext = createContext(null);
type PersistedSettings = {
fogEnabled?: boolean;
@ -13,7 +20,7 @@ export function useSettings() {
return useContext(SettingsContext);
}
export function SettingsProvider({ children }: { children: React.ReactNode }) {
export function SettingsProvider({ children }: { children: ReactNode }) {
const [fogEnabled, setFogEnabled] = useState(true);
const [speedMultiplier, setSpeedMultiplier] = useState(1);
const [fov, setFov] = useState(90);