Skip to content

Commit

Permalink
add delete account page
Browse files Browse the repository at this point in the history
  • Loading branch information
Romancha committed Feb 1, 2024
1 parent f3e439a commit 8b97565
Show file tree
Hide file tree
Showing 7 changed files with 10,076 additions and 11,099 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ Developing like a general react app.
Clone repository and run for install packages:

```
npm install
yarn
```

Runs the app in the development mode:

```
npm start
yarn run start
```

Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
Expand Down
11,076 changes: 0 additions & 11,076 deletions package-lock.json

This file was deleted.

42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{
"name": "wr-site",
"version": "0.1.0",
"version": "0.2.0",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.1.0",
"@fortawesome/free-brands-svg-icons": "^6.1.0",
"@fortawesome/free-regular-svg-icons": "^6.1.0",
"@fortawesome/free-solid-svg-icons": "^6.1.0",
"@fortawesome/react-fontawesome": "^0.1.18",
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.4.0",
"@types/node": "^16.11.24",
"@types/react": "^17.0.39",
"@types/react-dom": "^17.0.11",
"bootstrap": "^5.1.3",
"react": "^17.0.2",
"react-bootstrap": "^2.1.2",
"react-dom": "^17.0.2",
"react-router-dom": "^6.2.1",
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-brands-svg-icons": "^6.5.1",
"@fortawesome/free-regular-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@testing-library/jest-dom": "^6.4.1",
"@testing-library/react": "^14.2.0",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.11",
"@types/node": "^20.11.15",
"@types/react": "^18.2.51",
"@types/react-dom": "^18.2.18",
"bootstrap": "^5.3.2",
"react": "^18.2.0",
"react-bootstrap": "^2.10.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.21.3",
"react-scripts": "^5.0.1",
"react-scrollchor": "^7.0.1",
"typescript": "^4.5.5",
"web-vitals": "^2.1.4"
"react-scrollchor": "^7.0.2",
"typescript": "^5.3.3",
"web-vitals": "^3.5.2"
},
"scripts": {
"start": "react-scripts start",
Expand Down
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Home from "./routes/home"
import About from "./routes/about"
import Faq from "./routes/faq"
import Guide from "./routes/guide"
import DeleteAccount from "./routes/deleteAccount"


function App() {
Expand All @@ -21,6 +22,7 @@ function App() {
<Route path="/faq" element={<Faq/>}/>
<Route path="/guide" element={<Guide/>}/>
<Route path="/release" element={<Release/>}/>
<Route path="/delete-account" element={<DeleteAccount/>}/>
</Route>
</Routes>
</BrowserRouter>
Expand Down
36 changes: 36 additions & 0 deletions src/routes/deleteAccount.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import React from "react";

export default function DeleteAccount() {
return (
<main style={{padding: "1rem 0"}}>
<div className={"pb-5"}>
<div className="pm-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
<h1 className="display-3">Account deletion</h1>
</div>

<div className={"container g-4 lead"}>
<div>
<p>
If you want to delete your account in Work&Rest, please send an email to <a
href={"mailto:wr@romancha.org"}>wr@romancha.org</a> with the subject "Delete account" and
describe what you want to delete:
<p/>
<ol>
<li>
All account data - account, backups: categories, activities, pomodoros settings
</li>
<li>
Just backups: categories, activities, pomodoros settings. You account will be saved.
</li>
</ol>
We will delete your data within 14 days and inform you by email.
</p>
<p>
<b>Please note that this action cannot be undone.</b>
</p>
</div>
</div>
</div>
</main>
);
}
6 changes: 6 additions & 0 deletions src/routes/faq/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ const Contact = () => {
support.
</Accordion.Body>
</Accordion.Item>
<Accordion.Item eventKey="4">
<Accordion.Header>How do I delete account?</Accordion.Header>
<Accordion.Body>
Please read <a href={"/delete-account"}>Delete account</a> page.
</Accordion.Body>
</Accordion.Item>
</Accordion>
</div>
</div>
Expand Down
Loading

0 comments on commit 8b97565

Please sign in to comment.