website refactor
This commit is contained in:
@@ -25,7 +25,7 @@ export default async function LeagueStewardingPage({ params }: Props) {
|
||||
leagueId={leagueId}
|
||||
currentDriverId=""
|
||||
onRefetch={() => {}}
|
||||
data={{
|
||||
viewData={{
|
||||
leagueId,
|
||||
totalPending: 0,
|
||||
totalResolved: 0,
|
||||
@@ -39,7 +39,7 @@ export default async function LeagueStewardingPage({ params }: Props) {
|
||||
const data = result.unwrap();
|
||||
|
||||
return <StewardingPageClient
|
||||
data={data}
|
||||
viewData={data}
|
||||
leagueId={leagueId}
|
||||
currentDriverId="" // Should be fetched or passed
|
||||
onRefetch={() => {}} // Should be handled
|
||||
|
||||
@@ -21,5 +21,5 @@ export default async function Page({ params }: Props) {
|
||||
|
||||
const viewData = result.isOk() ? result.unwrap() : null;
|
||||
|
||||
return <ProtestDetailPageClient initialViewData={viewData} />;
|
||||
return <ProtestDetailPageClient viewData={viewData as any} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user