Skip to content

Commit

Permalink
Revert "add refresh btn on footer because there's no refresh btn in P…
Browse files Browse the repository at this point in the history
…WA app (…" (#61)

This reverts commit cf0cbac.

Co-authored-by: sommermorgentraum <[email protected]>
  • Loading branch information
jLynx and zxkmm authored Apr 2, 2024
1 parent fa3fe33 commit df1e583
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
8 changes: 1 addition & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,4 @@ next-env.d.ts
**/public/precache**

# Cloudflare
.wrangler

# pnpm
pnpm-lock.yaml

# vscode
.vscode
.wrangler
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss"
]
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"files.associations": {
"*.css": "tailwindcss"
},
"editor.quickSuggestions": {
"strings": "on"
},
"prettier.useEditorConfig": false,
"editor.formatOnSave": true
}
9 changes: 0 additions & 9 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import { faGithubAlt } from "@fortawesome/free-brands-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faRotateRight } from "@fortawesome/free-solid-svg-icons";

export const Footer = () => {

const refreshHandler = () => {
window.location.reload();
};

return (
<footer className="footer mt-10 items-center bg-neutral p-4 text-neutral-content">
<aside className="grid-flow-row items-center">
Expand All @@ -21,9 +15,6 @@ export const Footer = () => {
className="mr-2 max-w-6 text-2xl text-white"
/>
</a>
<button onClick={refreshHandler} className="grid-flow-col gap-4 md:place-self-center md:justify-self-end">
<FontAwesomeIcon icon={faRotateRight} className="mr-2 max-w-6 text-2xl text-white" />
</button>
</nav>
</footer>
);
Expand Down

0 comments on commit df1e583

Please sign in to comment.