From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server-vie001.gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_DBL_BLOCKED_OPENDNS, URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1740264886; bh=uj13coLSM5bBVHdBCE7GhWA/NNpUmm3JLg8s+2UlIbs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Message-ID:Date:From: Reply-To:Subject:To:Cc:In-Reply-To:References:Resent-Date: Resent-From:Resent-To:Resent-Cc:User-Agent:Content-Type: Content-Transfer-Encoding; b=eR3oVQdMxG7KrcVmJjPHpUZ2QvaL1ZX0T4r1emda9AICJFBNOq3YOni/rsXTvwh9t cHV7lVnYzrdUQtbSjLUbKWklVVsIG1t8Yf4gBsAL1BB8cm9X+B0yfr4ruczYX411aY SuXZ2llY0rEtouKWI7UaBbVbUvhGPBtS1rAzjWxdrhavMekRpo8A2CgKkMdER4nB2H UxZXL/CfREQ6ulucm7aa1llnwj8TRYiUqB8JR5jXjPSdZTTiXzzIAqTBcPY0popfF7 051NXJ1TPy1MPj8C0C2msXYn3IY5xsPJyAjxRH8tF2wy8rnj2viNAHe7HodpYrl2TR tuLr4+MdHCtxg== Received: from localhost.localdomain (unknown [101.128.125.35]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id 0AE6720744CB; Sat, 22 Feb 2025 22:54:44 +0000 (UTC) From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v1 03/13] feat(constants): add settingsNav data Date: Sun, 23 Feb 2025 05:54:09 +0700 Message-ID: <20250222225423.1377-4-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.45.2.windows.1 In-Reply-To: <20250222225423.1377-1-kiizuha@gnuweeb.org> References: <20250222225423.1377-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This constant stores navigation data for the settings page. Signed-off-by: Muhammad Rizki --- src/lib/constants/navigations.ts | 13 +++++++++++++ src/lib/typings/common.d.ts | 1 + 2 files changed, 14 insertions(+) diff --git a/src/lib/constants/navigations.ts b/src/lib/constants/navigations.ts index fc626aa..ada0e40 100644 --- a/src/lib/constants/navigations.ts +++ b/src/lib/constants/navigations.ts @@ -13,3 +13,16 @@ export const navigations: typing.Navigations[] = [ url: "/settings" } ] as const; + +export const settingsNav: typing.Navigations[] = [ + { + name: "Profile", + description: "Manage your profile.", + url: "/settings/profile" + }, + { + name: "Account", + description: "Manage your account credentials.", + url: "/settings/account" + } +]; diff --git a/src/lib/typings/common.d.ts b/src/lib/typings/common.d.ts index e2c0164..fa3b8ca 100644 --- a/src/lib/typings/common.d.ts +++ b/src/lib/typings/common.d.ts @@ -4,6 +4,7 @@ export type RecordString = Record; export interface Navigations { name: string; + description?: string; icon?: typeof IconType; url: string; } -- Muhammad Rizki