Skip to content

Commit

Permalink
Update configuration covered by overspill from old ui/
Browse files Browse the repository at this point in the history
  • Loading branch information
Willdotwhite committed Jan 12, 2024
1 parent cac7262 commit 2a9dcf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ui/src/pages/home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import {Onboarding} from "./components/Onboarding.tsx";
import {SiteIntro} from "./components/SiteIntro.tsx";
import {importMetaEnv} from "../../common/utils/importMeta.ts";
import {useAuth} from "../../api/AuthContext.tsx";
import {Post} from "../../common/models/post.ts";

export const Home: React.FC = () => {
const [searchParams, setSearchParams] = useSearchParams();
const [posts, setPosts] = useState([])
const [posts, setPosts] = useState<Post[]>([])
const { token } = useAuth() ?? {};

// Trigger API call every time query string changes
Expand Down
4 changes: 2 additions & 2 deletions ui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,

Expand Down

0 comments on commit 2a9dcf2

Please sign in to comment.