Skip to content

Commit 7b815fd

Browse files
documentation: comments on page.tsx
1 parent 81f092d commit 7b815fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ export default function Home() {
2626
setUserDifference([]);
2727
}
2828

29+
// On Drop reads files then checks them against the schemas and throws an error if broke
30+
// Extremely Robust for wrong json
2931
function onDrop(acceptedFiles: File[]) {
3032
acceptedFiles.forEach((file) => {
3133
const reader = new FileReader();
@@ -72,14 +74,14 @@ export default function Home() {
7274
Curious Who Doesn't Follow You Back?
7375
</h1>
7476

75-
{/* TODO: Refactor this conditional rendering into separate components to improve readability. For now, leaving it in-line to focus on styling and theming. */}
7677
{!hasProcessedDifference ? (
7778
<HeroSection onDrop={onDrop} hasProcessedFollowers={hasProcessedFollowers} hasProcessedFollowing={hasProcessedFollowing}></HeroSection>
7879
) : (
7980
<ResultsSection handleReset={handleReset} userDifference={userDifference}></ResultsSection>
8081
)}
8182
</main>
8283

84+
{/* Disclaimer Footer */}
8385
<a
8486
href="https://github.com/Eric-Zhang-Developer/follow-diff"
8587
target="_blank"

0 commit comments

Comments
 (0)