From 48ece125761c4dce8175265c3b4de717a249eb0e Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 7 Jun 2020 16:36:50 +0300 Subject: feat: improve PollCard component --- src/index.tsx | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src/index.tsx') diff --git a/src/index.tsx b/src/index.tsx index b59876b..d7efbf7 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -21,6 +21,26 @@ const theme = createMuiTheme({ } }); +const pollProps = { + author: { + name: 'John Doe', + avatarUrl: '' + }, + contents: { + left: { + // eslint-disable-next-line max-len + url: 'https://images.pexels.com/photos/556666/pexels-photo-556666.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500', + votes: 15 + }, + right: { + // eslint-disable-next-line max-len + url: 'https://cdn.psychologytoday.com/sites/default/files/field_blog_entry_images/2019-06/pexels-photo-556667.jpeg', + votes: 17 + } + } +}; + + const App: React.FC = () => { const [page, setPage] = useState('feed'); @@ -28,7 +48,7 @@ const App: React.FC = () => {
- + ); }; -- cgit v1.2.3