-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade next dependencies * Fix compilation errors * Migrate to async props * Fix compilation * Structure improvements * Upgrade to latest deps * Make recharts work * Prettify
- Loading branch information
Showing
34 changed files
with
1,137 additions
and
870 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
apps/web/app/opinionsundersokningar/components/block-builder/without-ssr.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"use client"; | ||
|
||
import dynamic from "next/dynamic"; | ||
|
||
const BlockBuilder = dynamic(() => import("./block-builder"), { | ||
ssr: false, | ||
loading: BlockBuilderLoading, | ||
}); | ||
|
||
function BlockBuilderLoading() { | ||
return ( | ||
<div | ||
role="status" | ||
className="h-[43rem] w-full animate-pulse bg-slate-200 dark:bg-slate-900" | ||
/> | ||
); | ||
} | ||
|
||
export default BlockBuilder; |
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
apps/web/app/opinionsundersokningar/components/block-statistics/without-ssr.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"use client"; | ||
|
||
import dynamic from "next/dynamic"; | ||
|
||
const BlockStatistics = dynamic(() => import("./block-statistics"), { | ||
ssr: false, | ||
loading: BlockStatisticsLoading, | ||
}); | ||
|
||
function BlockStatisticsLoading() { | ||
return ( | ||
<div | ||
role="status" | ||
className="h-52 w-full animate-pulse bg-slate-200 dark:bg-slate-900 sm:h-80" | ||
/> | ||
); | ||
} | ||
|
||
export default BlockStatistics; |
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
apps/web/app/opinionsundersokningar/components/historic-polls/without-ssr.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"use client"; | ||
|
||
import dynamic from "next/dynamic"; | ||
|
||
const HistoricPolls = dynamic(() => import("./historic-polls"), { | ||
ssr: false, | ||
loading: HistoricPollsLoading, | ||
}); | ||
|
||
function HistoricPollsLoading() { | ||
return ( | ||
<div | ||
role="status" | ||
className="h-[30rem] w-full animate-pulse bg-slate-200 dark:bg-slate-900" | ||
/> | ||
); | ||
} | ||
|
||
export default HistoricPolls; |
File renamed without changes.
38 changes: 38 additions & 0 deletions
38
apps/web/app/opinionsundersokningar/components/month-poll/without-ssr.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
"use client"; | ||
|
||
import dynamic from "next/dynamic"; | ||
import { twMerge } from "tailwind-merge"; | ||
|
||
const MonthPoll = dynamic(() => import("./month-poll"), { | ||
loading: MonthPollLoading, | ||
ssr: false, | ||
}); | ||
|
||
const LOADING_BARS = [ | ||
"h-80", | ||
"h-64", | ||
"h-60", | ||
"h-72", | ||
"h-48", | ||
"h-96", | ||
"h-32", | ||
"h-56", | ||
]; | ||
|
||
function MonthPollLoading() { | ||
return ( | ||
<div role="status" className="ml-[40px] flex h-96 items-end sm:h-[30rem]"> | ||
{LOADING_BARS.map((height) => ( | ||
<div | ||
key={height} | ||
className={twMerge( | ||
"mx-2 flex-1 animate-pulse bg-slate-200 dark:bg-slate-900", | ||
height, | ||
)} | ||
/> | ||
))} | ||
</div> | ||
); | ||
} | ||
|
||
export default MonthPoll; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.