Skip to content

Commit 498f1cd

Browse files
committed
Fix layout conflict marker and loader lint
1 parent 83c8f3c commit 498f1cd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

frontend/src/app/layout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export default function RootLayout({
5353
<a href="#main-content" className="skip-link">
5454
Skip to content
5555
</a>
56-
<<<<<<< HEAD
5756
<RouteTopLoader />
5857
<Navbar />
5958
<div className="pt-16">

frontend/src/components/RouteTopLoader.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ export default function RouteTopLoader() {
1313
const [visible, setVisible] = useState(false);
1414

1515
useEffect(() => {
16-
setVisible(true);
17-
setProgress(START);
16+
const startTimer = setTimeout(() => {
17+
setVisible(true);
18+
setProgress(START);
19+
}, 0);
1820

1921
const midTimer = setTimeout(() => setProgress(MID), 180);
2022
const doneTimer = setTimeout(() => setProgress(DONE), 480);
@@ -24,6 +26,7 @@ export default function RouteTopLoader() {
2426
}, 760);
2527

2628
return () => {
29+
clearTimeout(startTimer);
2730
clearTimeout(midTimer);
2831
clearTimeout(doneTimer);
2932
clearTimeout(hideTimer);

0 commit comments

Comments
 (0)