Skip to content

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
thomassth committed Dec 30, 2024
1 parent 47ac913 commit 54f2309
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 26 deletions.
6 changes: 3 additions & 3 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
"Helvetica Neue", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
Expand Down
42 changes: 19 additions & 23 deletions src/routes/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,27 +73,23 @@ function HomeBookmarks() {
const stopBookmarks = stopBookmarksSelectors.selectAll(
store.getState().stopBookmarks
);
return (
<>
{stopBookmarks.length === 0 ? (
<section className="item-info-placeholder">
<p>{t("home.headline")}</p>
<p>{t("home.bookmarkReminder")}</p>
<p>
{t("home.orSee")}
<Link
style={{
marginLeft: "1rem",
}}
to="/lines"
>
<Button>{t("home.allRoutes")}</Button>
</Link>
</p>
</section>
) : (
<FavouriteEta />
)}
</>
);
if (stopBookmarks.length === 0) {
return (
<section className="item-info-placeholder">
<p>{t("home.headline")}</p>
<p>{t("home.bookmarkReminder")}</p>
<p>
{t("home.orSee")}
<Link
style={{
marginLeft: "1rem",
}}
to="/lines"
>
<Button>{t("home.allRoutes")}</Button>
</Link>
</p>
</section>
);
} else return <FavouriteEta />;
}

0 comments on commit 54f2309

Please sign in to comment.