diff --git a/website/src/App.tsx b/website/src/App.tsx index 68594c7..94dfb0c 100644 --- a/website/src/App.tsx +++ b/website/src/App.tsx @@ -203,7 +203,7 @@ class App extends Component { } if (this.props.location.pathname === "/new-entries") { this.setState({ - results: dictionary.getNewWordsThisMonth(), + results: dictionary.getNewWords("week"), page: 1, }); } @@ -335,7 +335,7 @@ class App extends Component { } if (this.props.location.pathname === "/new-entries") { this.setState({ - results: dictionary.getNewWordsThisMonth(), + results: dictionary.getNewWords("week"), page: 1, }); } @@ -647,7 +647,7 @@ class App extends Component { to="/new-entries" className="plain-link font-weight-light" > -
New words this month
+
New words this week
import("@lingdocs/ps-react").Types.DictionaryEntry[]; - getNewWordsThisMonth: () => import("@lingdocs/ps-react").Types.DictionaryEntry[]; + getNewWords: ( + period: "month" | "week" + ) => import("@lingdocs/ps-react").Types.DictionaryEntry[]; findOneByTs: ( ts: number ) => import("@lingdocs/ps-react").Types.DictionaryEntry | undefined;