liquid-funding/src/index.js

24 lines
793 B
JavaScript
Raw Normal View History

2018-11-28 16:12:50 +00:00
import React from 'react';
2019-04-25 13:46:13 +00:00
import {render} from 'react-dom';
2019-01-17 20:38:17 +00:00
import DatabaseProvider from '@nozbe/watermelondb/DatabaseProvider';
2019-04-25 13:46:13 +00:00
import {MuiThemeProvider, createMuiTheme} from '@material-ui/core/styles';
2019-01-17 20:38:17 +00:00
import database from './db';
2018-11-28 16:12:50 +00:00
import App from './dapp';
2019-04-25 13:46:13 +00:00
import './css/fonts/Inter/inter.css'
const theme = createMuiTheme({
typography: {
2019-04-25 15:18:58 +00:00
useNextVariants: true,
2019-04-25 13:46:13 +00:00
fontFamily: ['Inter', '-apple-system', 'BlinkMacSystemFont', "Segoe UI", 'Roboto', "Helvetica Neue", 'Arial', "Noto Sans", 'sans-serif', "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"].join(','),
},
});
2018-11-28 16:12:50 +00:00
render(
2019-01-17 20:38:17 +00:00
<DatabaseProvider database={database}>
2019-04-25 13:46:13 +00:00
<MuiThemeProvider theme={theme}>
<App/>
</MuiThemeProvider>
2019-01-17 20:38:17 +00:00
</DatabaseProvider>, document.getElementById('app')
2018-11-28 16:12:50 +00:00
);