-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
74 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
import React from "react"; | ||
import { useHistory } from "react-router-dom"; | ||
import { ROUTE_PATHS } from "@/shared/constants"; | ||
import Button from "../Button/Button"; | ||
import { Button, ButtonVariant } from "@/shared/ui-kit"; | ||
import "./index.scss"; | ||
|
||
export default function NotFound() { | ||
const history = useHistory(); | ||
|
||
return ( | ||
<div className="page-not-found"> | ||
<img src="/assets/images/404.jpg" alt="404" /> | ||
<h3 className="page-not-found__message">Woops, the page you’re looking for isn’t there</h3> | ||
<Button onClick={() => history.push(ROUTE_PATHS.HOME)}>Back to Home</Button> | ||
<h3 className="page-not-found__message"> | ||
Woops, the page you’re looking for isn’t there | ||
</h3> | ||
<Button | ||
onClick={() => history.push(ROUTE_PATHS.HOME)} | ||
variant={ButtonVariant.PrimaryPink} | ||
> | ||
Back to Home | ||
</Button> | ||
</div> | ||
) | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { useEffect } from "react"; | ||
import { useDispatch, useSelector } from "react-redux"; | ||
import { Theme } from "../constants"; | ||
import { changeTheme } from "../store/actions"; | ||
import { selectTheme } from "../store/selectors"; | ||
|
||
const useLightThemeOnly = () => { | ||
const dispatch = useDispatch(); | ||
const theme = useSelector(selectTheme); | ||
|
||
useEffect(() => { | ||
if (theme === Theme.Dark) { | ||
dispatch(changeTheme(Theme.Light)); | ||
} | ||
}, [theme, dispatch, changeTheme]); | ||
}; | ||
|
||
export default useLightThemeOnly; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/shared/ui-kit/TextEditor/components/Element/components/Link/Link.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@import "../../../../../../../constants"; | ||
|
||
.link { | ||
color: var(--secondary-text); | ||
color: var(--primary-fill); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters