From 70dadca01c905a00595eacb482a2a77a96748b06 Mon Sep 17 00:00:00 2001 From: Ryan Korsak Date: Fri, 9 Oct 2020 10:31:03 -0400 Subject: [PATCH] Fix Card rendering on Safari, small lint issues --- src/components/LargeCard.tsx | 28 +++++++++++++++------------- src/mocks/MockDataAccess.ts | 2 +- src/pages/ElectionPage.tsx | 2 +- 3 files changed, 17 insertions(+), 15 deletions(-) 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';