mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-02 05:54:20 +01:00
feat: update readme, fix hottest mocks
This commit is contained in:
@@ -6,11 +6,11 @@ import App from './App';
|
||||
import reportWebVitals from './reportWebVitals';
|
||||
|
||||
|
||||
if (process.env.NODE_ENV === 'development' || process.env.REACT_APP_ENABLE_MOCKS) {
|
||||
if (process.env.REACT_APP_ENABLE_MOCKS) {
|
||||
const { worker } = require('./mocks/browser')
|
||||
// worker.start({
|
||||
// onUnhandledRequest: 'bypass'
|
||||
// })
|
||||
worker.start({
|
||||
onUnhandledRequest: 'bypass'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -36,10 +36,6 @@ export function searchProjects(search: string) {
|
||||
}
|
||||
|
||||
export function hottestProjects() {
|
||||
return {
|
||||
title: "Hottest Projects",
|
||||
cover_image: ASSETS.Image_Hottest_Header,
|
||||
apps_count: 20,
|
||||
project: MOCK_DATA.projects.sort((p1, p2) => p2.votes_count - p1.votes_count).slice(0, 20)
|
||||
}
|
||||
return MOCK_DATA.projects.sort((p1, p2) => p2.votes_count - p1.votes_count).slice(0, 20)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user