Skip to content

Commit

Permalink
move to layout
Browse files Browse the repository at this point in the history
  • Loading branch information
nofurtherinformation committed Apr 11, 2024
1 parent 02cf384 commit 080b075
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/county/[county]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from "react"
import path from "path"
import { getSummaryStats } from "utils/data/summaryStats"
import fs from "fs"
import { getContentDirs } from "utils/contentDirs"

type CountyRouteProps = {
params: {
Expand Down Expand Up @@ -40,7 +38,6 @@ type CountyDataMap = Map<CountyDataKeys, CountyDataValues>
const CountyPage: React.FC<CountyRouteProps> = async ({ params }) => {
const county = params.county
const countyDataPath = path.join(process.cwd(), "public", "data", `county_summary_stats.msgpack`)
getContentDirs()

const countyStats = await getSummaryStats<CountyDataMap>(countyDataPath, county)

Expand Down
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import Nav from "components/Nav"
import "styles/tailwind.css"
import { getContentDirs } from "utils/contentDirs"

export default function RootLayout({ children }: { children: React.ReactNode }) {
getContentDirs()
return (
<html lang="en">
<body>
Expand Down

0 comments on commit 080b075

Please sign in to comment.