Skip to content

Instantly share code, notes, and snippets.

@InputNeuron
Created May 3, 2020 13:54
Show Gist options
  • Select an option

  • Save InputNeuron/c210ad9e5ae19eb8968f1dfcf0d7d0e3 to your computer and use it in GitHub Desktop.

Select an option

Save InputNeuron/c210ad9e5ae19eb8968f1dfcf0d7d0e3 to your computer and use it in GitHub Desktop.
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