liquid-funding/src/index.js

24 lines
829 B
JavaScript
Raw Normal View History

2018-11-28 11:12:50 -05:00
import React from 'react';
2019-04-25 09:46:13 -04:00
import {render} from 'react-dom';
2019-01-17 15:38:17 -05:00
import DatabaseProvider from '@nozbe/watermelondb/DatabaseProvider';
2019-04-25 09:46:13 -04:00
import {MuiThemeProvider, createMuiTheme} from '@material-ui/core/styles';
2019-01-17 15:38:17 -05:00
import database from './db';
2018-11-28 11:12:50 -05:00
import App from './dapp';
2019-04-25 09:46:13 -04:00
import './css/fonts/Inter/inter.css'
const theme = createMuiTheme({
typography: {
// Use the system font instead of the default Roboto font.
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 11:12:50 -05:00
render(
2019-01-17 15:38:17 -05:00
<DatabaseProvider database={database}>
2019-04-25 09:46:13 -04:00
<MuiThemeProvider theme={theme}>
<App/>
</MuiThemeProvider>
2019-01-17 15:38:17 -05:00
</DatabaseProvider>, document.getElementById('app')
2018-11-28 11:12:50 -05:00
);