Skip to content

Commit

Permalink
refactor: updates route and component name.
Browse files Browse the repository at this point in the history
Relates #147
  • Loading branch information
nichgalzin committed Dec 18, 2024
1 parent b98f67e commit 5037e08
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import SignUpPage from "~components/page-components/SignUpPage/SignUpPage"
import useStore from "~store/store"
import type { User, UserSession } from "~types/userTypes"
import newStorage from "~utils/newStorage"
import PasswordRecoveryPage from "~components/page-components/PasswordRecoveryPage/PasswordRecoveryPage"

function IndexPopup() {
const currentPage = useStore.use.currentPage()
Expand Down Expand Up @@ -128,6 +129,15 @@ function IndexPopup() {
>
<SignUpPage />
</CSSTransition>

<CSSTransition
in={currentPage === "password-recovery"}
timeout={500}
classNames="password-recovery-page"
unmountOnExit
>
<PasswordRecoveryPage />
</CSSTransition>

<CSSTransition
in={currentPage === "favourites"}
Expand Down Expand Up @@ -155,6 +165,7 @@ function IndexPopup() {
>
<DigestPage />
</CSSTransition>

</Layout>
</ErrorBoundary>
)
Expand Down
1 change: 1 addition & 0 deletions src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ interface State {
| "favourites"
| "about"
| "digest"
| "password-recovery"
}

interface Actions {
Expand Down

0 comments on commit 5037e08

Please sign in to comment.