Created
May 3, 2020 13:54
-
-
Save InputNeuron/c210ad9e5ae19eb8968f1dfcf0d7d0e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from 'react'; | |
| import {Devices} from "polar-shared/src/util/Devices"; | |
| import {AnnotationRepoTable2} from './AnnotationRepoTable2'; | |
| const Main = () => ( | |
| <div style={{ | |
| display: 'flex', | |
| flexDirection: 'column', | |
| minHeight: 0 | |
| }}> | |
| <AnnotationRepoTable2/> | |
| </div> | |
| ); | |
| const Default = () => ( | |
| <Main/> | |
| ); | |
| const Phone = () => ( | |
| <Main/> | |
| ); | |
| export const AnnotationListView2 = () => { | |
| if (Devices.get() === 'phone') { | |
| return <Phone/>; | |
| } else { | |
| return <Default/>; | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment