From fe33dca630a6b22da3a43c450185759230c40f6d Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Thu, 20 Nov 2025 16:08:33 +0530 Subject: [PATCH] cleanup --- src/blog/utils/articles.ts | 3 +-- src/main.jsx | 16 +++++++--------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/blog/utils/articles.ts b/src/blog/utils/articles.ts index 40459b7..29ca680 100644 --- a/src/blog/utils/articles.ts +++ b/src/blog/utils/articles.ts @@ -2,9 +2,8 @@ import { ArticleModel, } from "../types/models"; -// List helpers export function createInList(list: ArticleModel[], a: ArticleModel) { - return [a, ...list]; + return [...list, a]; } export function readInList(list: ArticleModel[], index: number) { diff --git a/src/main.jsx b/src/main.jsx index 3d2ff48..1becdc0 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -9,13 +9,11 @@ const rootElement = document.getElementById('root'); const root = createRoot(rootElement); root.render( - - - - - - - - - , + + + + + + + , );