mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-22 04:11:15 +00:00
Fixing reverse issue.
This commit is contained in:
parent
72f6c2657a
commit
06ed1c316b
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import { isBrowser } from "../utils";
|
||||||
import { news_md } from "../translations/news";
|
import { news_md } from "../translations/news";
|
||||||
|
|
||||||
const title = i18n.t("news");
|
const title = i18n.t("news");
|
||||||
|
const newsReversed = news_md.reverse();
|
||||||
|
|
||||||
export class News extends Component<any, any> {
|
export class News extends Component<any, any> {
|
||||||
constructor(props: any, context: any) {
|
constructor(props: any, context: any) {
|
||||||
|
@ -30,7 +31,7 @@ export class News extends Component<any, any> {
|
||||||
<li>
|
<li>
|
||||||
<Link to="/releases">{i18n.t("releases")}</Link>
|
<Link to="/releases">{i18n.t("releases")}</Link>
|
||||||
</li>
|
</li>
|
||||||
{news_md.reverse().map(v => (
|
{newsReversed.map(v => (
|
||||||
<li>
|
<li>
|
||||||
<Link to={`news_item/${v.title}`}>{v.title}</Link>
|
<Link to={`news_item/${v.title}`}>{v.title}</Link>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue