diff --git a/frontend/src/components/settings/CommitSection.jsx b/frontend/src/components/settings/CommitSection.jsx index 04b92cd..cdb0d81 100644 --- a/frontend/src/components/settings/CommitSection.jsx +++ b/frontend/src/components/settings/CommitSection.jsx @@ -1,59 +1,44 @@ -import React from "react"; -import Textarea from "../ui/TextArea"; +import React from 'react'; +import Textarea from '../ui/TextArea'; const CommitSection = ({ - status, - commitMessage, - setCommitMessage, - hasIncomingChanges, + status, + commitMessage, + setCommitMessage, + hasIncomingChanges, + funMessage }) => { - const hasUnstagedChanges = status.outgoing_changes.some( - (change) => !change.staged || (change.staged && change.modified) - ); - const hasStagedChanges = status.outgoing_changes.some( - (change) => change.staged - ); - const hasAnyChanges = status.outgoing_changes.length > 0; + const hasUnstagedChanges = status.outgoing_changes.some( + change => !change.staged || (change.staged && change.modified) + ); + const hasStagedChanges = status.outgoing_changes.some( + change => change.staged + ); + const hasAnyChanges = status.outgoing_changes.length > 0; - const funMessages = [ - "No changes detected. Your regex is so precise, it could find a needle in a haystack... made of needles. ๐Ÿงต๐Ÿ”", - "All quiet on the commit front. Your custom formats are so perfect, even perfectionists are jealous. ๐Ÿ†", - "No updates needed. Your media automation is running so smoothly, it's making butter jealous. ๐Ÿงˆ", - "Zero modifications. Your torrent setup is seeding so efficiently, farmers are asking for advice. ๐ŸŒพ", - "No edits required. Your regex fu is so strong, it's bench-pressing parentheses for fun. ๐Ÿ’ช()", - "Unchanged status. Your Plex library is so well-organized, librarians are taking notes. ๐Ÿ“š๐Ÿค“", - "No alterations found. Your file naming scheme is so consistent, it's bringing tears to OCD eyes. ๐Ÿ˜ข๐Ÿ‘€", - "All systems nominal. Your download queue is so orderly, it's making Marie Kondo question her career. ๐Ÿงนโœจ", - "No revisions necessary. Your automation scripts are so smart, they're solving captchas for fun. ๐Ÿค–๐Ÿงฉ", - "Steady as she goes. Your media collection is so complete, Netflix is asking you for recommendations. ๐ŸŽฌ๐Ÿ‘‘", - ]; - - const randomMessage = - funMessages[Math.floor(Math.random() * funMessages.length)]; - - return ( -
- {hasAnyChanges || hasIncomingChanges ? ( - <> - {hasStagedChanges && ( - <> -

- Commit Message: -

-