Commit 3baf1522 authored by Anthony Jacob's avatar Anthony Jacob
Browse files

code cleaning

parent 8445cecb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ export default function ClientAbout({ data, enabledLanguage }: { data: any, enab
                                                ]);
                                            }
                                        }}
                                        rows={4}
                                        rows={20}
                                    />
                                </div>
                            );
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ import { cookies } from "next/headers";



//YYYY-MM-DD HH:MM:SS
//YYYY-MM-DD
function formatDate(date: Date): string {
    return date.getFullYear() + '-' +
        String(date.getMonth() + 1).padStart(2, '0') + '-' +
+1 −1
Original line number Diff line number Diff line
@@ -305,7 +305,7 @@ export default function KeywordListClient({ data, enabledLanguage }: { data: any
                                        console.log(movedKeyword);
                                        console.log(`Moved keyword ${active.id} from position ${oldIndex + 1} to ${newIndex + 1} in language ${lang.language_code}`);
                                        updateKeyword(Number(active.id), movedKeyword.keyword, lang.language_code, newIndex + 1);
                                        // TODO: Optionally persist new order to backend here

                                    }}
                                >
                                    <SortableContext