From ab3c6183c5fd3e548a6c85654b7e4115670fa3b5 Mon Sep 17 00:00:00 2001 From: santiagosayshey Date: Sat, 24 Aug 2024 05:01:42 +0930 Subject: [PATCH] feat(settings-page): Add sorting options for git status --- .../src/components/settings/CommitSection.jsx | 81 +-- .../src/components/settings/SettingsPage.jsx | 472 ++++++++++-------- frontend/src/components/ui/Navbar.jsx | 2 +- frontend/src/index.css | 14 +- 4 files changed, 271 insertions(+), 298 deletions(-) diff --git a/frontend/src/components/settings/CommitSection.jsx b/frontend/src/components/settings/CommitSection.jsx index 98ca0c6..04b92cd 100644 --- a/frontend/src/components/settings/CommitSection.jsx +++ b/frontend/src/components/settings/CommitSection.jsx @@ -1,22 +1,10 @@ import React from "react"; -import { - CheckSquare, - GitCommit, - RotateCcw, - Loader, - Download, -} from "lucide-react"; import Textarea from "../ui/TextArea"; -import Tooltip from "../ui/Tooltip"; const CommitSection = ({ status, commitMessage, setCommitMessage, - handleStageAll, - handleCommitAll, - handleRevertAll, - loadingAction, hasIncomingChanges, }) => { const hasUnstagedChanges = status.outgoing_changes.some( @@ -43,70 +31,23 @@ const CommitSection = ({ const randomMessage = funMessages[Math.floor(Math.random() * funMessages.length)]; - const CommitButton = () => ( - - ); - return (
-

Changes:

{hasAnyChanges || hasIncomingChanges ? ( <> {hasStagedChanges && ( -