diff --git a/src/components/LargeCard.tsx b/src/components/LargeCard.tsx index 9acd15d..acdbe91 100644 --- a/src/components/LargeCard.tsx +++ b/src/components/LargeCard.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { useTheme } from '@fluentui/react-theme-provider'; -import { Card, CardSection } from '@uifabric/react-cards'; export interface LargeCardProps { alignToStart?: boolean; @@ -9,20 +8,23 @@ export interface LargeCardProps { const LargeCard: React.FunctionComponent = ({ alignToStart, children }) => { const theme = useTheme(); return ( - - {children || null} - + {children || null} + ); }; diff --git a/src/mocks/MockDataAccess.ts b/src/mocks/MockDataAccess.ts index f37676a..8ef3620 100644 --- a/src/mocks/MockDataAccess.ts +++ b/src/mocks/MockDataAccess.ts @@ -20,7 +20,7 @@ export class MockDataAccess implements DataAccess { async getElections(): Promise { const mockElection: Election = { id: mockDescription.election_scope_id, - election_description: mockDescription, + election_description: mockDescription as any, state: 'Published', }; return [mockElection]; diff --git a/src/pages/ElectionPage.tsx b/src/pages/ElectionPage.tsx index 34ac653..e6cd948 100644 --- a/src/pages/ElectionPage.tsx +++ b/src/pages/ElectionPage.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Stack, Text } from '@fluentui/react'; +import { Stack } from '@fluentui/react'; import AsyncContent from '../components/AsyncContent'; import ElectionTitle from '../components/ElectionTitle';