Skip to content

Commit

Permalink
Add update password form
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Apr 10, 2023
1 parent e849eee commit 33d7257
Show file tree
Hide file tree
Showing 15 changed files with 199 additions and 374 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState } from 'preact/hooks';
import Spinner from '../Spinner';
import { httpPost } from '../../lib/http';

export default function ForgotPasswordForm() {
export function ForgotPasswordForm() {
const [email, setEmail] = useState('');
const [isLoading, setIsLoading] = useState(false);
const [error, setError] = useState('');
Expand Down
4 changes: 2 additions & 2 deletions src/components/Authenticator/authenticator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ function showHideGuestElements(hideOrShow: 'hide' | 'show' = 'hide') {
// Prepares the UI for the user who is logged in
function handleGuest() {
const authenticatedRoutes = [
'/settings/profile',
'/settings/change-password',
'/settings/update-profile',
'/settings/update-password',
];

showHideAuthElements('hide');
Expand Down
2 changes: 1 addition & 1 deletion src/components/Breadcrumbs.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { breadcrumbs, roadmapId } = Astro.props;
---

<div class='py-7 pb-6'>
<!-- Desktop breadcrums -->
<!-- Desktop breadcrumbs -->
<p class='text-gray-500 container hidden sm:block'>
{
breadcrumbs.map((breadcrumb, counter) => {
Expand Down
50 changes: 0 additions & 50 deletions src/components/DownloadPopup.astro

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/Navigation/AccountDropdown.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import Icon from '../AstroIcon.astro';
<ul>
<li class='px-1'>
<a
href='/settings/profile'
href='/settings/update-profile'
class='block rounded px-4 py-2 text-sm font-medium text-slate-100 hover:bg-slate-700'
>
Settings
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navigation/Navigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ import AccountDropdown from './AccountDropdown.astro';
<!-- Links for logged in users -->
<li data-auth-required class='hidden'>
<a
href='/settings/profile'
href='/settings/update-profile'
class='text-xl hover:text-blue-300 md:text-lg'
>
Settings
Expand Down
45 changes: 0 additions & 45 deletions src/components/Profile/profile-details.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions src/components/RoadmapHeader.astro
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
---
import DownloadPopup from './DownloadPopup.astro';
import Icon from './AstroIcon.astro';
import LoginPopup from './AuthenticationFlow/LoginPopup.astro';
import RoadmapHint from './RoadmapHint.astro';
import RoadmapNote from './RoadmapNote.astro';
import SubscribePopup from './SubscribePopup.astro';
import TopicSearch from './TopicSearch/TopicSearch.astro';
import YouTubeAlert from './YouTubeAlert.astro';
Expand Down Expand Up @@ -34,8 +32,6 @@ const isRoadmapReady = !isUpcoming;
---

<LoginPopup />
<DownloadPopup />
<SubscribePopup />

<div class='border-b'>
<div class='container relative py-5 sm:py-12'>
Expand Down
219 changes: 0 additions & 219 deletions src/components/Setting/ChangePasswordForm.tsx

This file was deleted.

Loading

0 comments on commit 33d7257

Please sign in to comment.