diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-06-07 16:51:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-07 16:51:42 +0300 |
commit | 4e4c9d529e6f70e7dac84aaecb5b6a25769c3290 (patch) | |
tree | 7cf4ded95eec70201217552aa6dca7b35a2aa16d /src/index.tsx | |
parent | ce8764580983e0008300bcc88d463da44d94c455 (diff) | |
parent | d549053615ce308b906ca406f8d6623c0730d636 (diff) | |
download | which-ui-4e4c9d529e6f70e7dac84aaecb5b6a25769c3290.tar.gz |
Merge pull request #11 from ilyayudovin/poll-functionality
Add functionality to Poll component
Diffstat (limited to 'src/index.tsx')
-rw-r--r-- | src/index.tsx | 22 |
1 files changed, 21 insertions, 1 deletions
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 = () => { <ThemeProvider theme={theme}> <CssBaseline /> <Header page={page} setPage={setPage} /> - <PollCard /> + <PollCard author={pollProps.author} contents={pollProps.contents} /> </ThemeProvider> ); }; |