{"size": 539, "ext": "js", "max_stars_repo_path": "src/App.js", "max_stars_repo_name": "hieuhunter/frontend-matong-admin", "max_stars_repo_stars_event_min_datetime": "2021-12-14T03:14:03.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-21T08:25:12.000Z", "max_issues_repo_path": "src/App.js", "max_issues_repo_name": "hieuhunter/frontend-matong-admin", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/App.js", "max_forks_repo_name": "hieuhunter/frontend-matong-admin", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.5862068966, "max_line_length": 43, "alphanum_fraction": 0.6215213358}
import fetcher from 'common/utils/fetcher';
import { Provider } from 'react-redux';
import store from 'redux/store';
import Routes from 'router';

import { SWRConfig } from 'swr';
import './styles/globals.scss';

function App() {
	return (
		<Provider store={store}>
			<SWRConfig
				value={{
					fetcher: fetcher,
					onError: (error, key) => {
						console.log('Errors: ', error);
						return error.response;
					},
					shouldRetryOnError: false
				}}
			>
				<Routes />
			</SWRConfig>
		</Provider>
	);
}

export default App;
