Skip to content

Commit

Permalink
YOU STREAM 1.0.0
Browse files Browse the repository at this point in the history
Add Netlify Deploy
Update Header.tsx
Update app.slice.ts
Update App.context.tsx
Update WatchVideoContents.tsx
  • Loading branch information
DavidGomezToca committed Apr 25, 2024
1 parent 2d81a64 commit 4a68501
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

- **STACK :**

- **YOU STREAM** : `0.42.0`
- **YOU STREAM** : `1.0.0`
- **FAKER** : `8.4.1`
- **REACT** : `18.2.0`
- **PEXELS** : `1.4.0`
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "you-stream",
"version": "0.42.0",
"version": "1.0.0",
"private": true,
"dependencies": {
"@faker-js/faker": "^8.4.1",
Expand Down
Binary file modified resources/img/Thumbnail_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/img/Thumbnail_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const Header = () => {
const {
transcript,
listening,
resetTranscript,
browserSupportsSpeechRecognition,
} = useSpeechRecognition();

Expand All @@ -37,6 +36,7 @@ const Header = () => {
useEffect(() => {
setSearchText(transcript);
setSearchBarText(transcript);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [transcript]);

if (!browserSupportsSpeechRecognition) {
Expand All @@ -60,7 +60,7 @@ const Header = () => {
</Icon>
<LogoSection to="/">
<FaYoutube color="#FF0000" size={30} />
<Text className="logo">YouStream v0.42.0</Text>
<Text className="logo">YouStream v1.0.0</Text>
</LogoSection>
</LeftSection>
<SearchSection>
Expand Down
1 change: 1 addition & 0 deletions src/components/watchVideoContents/WatchVideoContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const WatchVideoContents = () => {
if (id) {
fetchVideo(id);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [id]);

if (isFetchingVideos) {
Expand Down
3 changes: 2 additions & 1 deletion src/context/App.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ interface IAppContextProviderProps {
const client = createClient(PEXELES_API_KEY);

export const AppContextProvider = ({ children }: IAppContextProviderProps) => {
const [theme, setTheme] = useState<"light" | "dark">("light");
const [language, setLanguage] = useState<"english" | "french">("english");
const [searchBarText, setSearchBarText] = useState("");
const [isMenuSmall, setIsMenuSmall] = useState(false);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [activeMenuText, setActiveMenuText] = useState("home");
const [activeCategory, setActiveCategory] = useState("All");
const [videos, setVideos] = useState<Video[]>([]);
Expand All @@ -70,6 +70,7 @@ export const AppContextProvider = ({ children }: IAppContextProviderProps) => {
if (videoToWatch !== 0) {
navigate(`/${videoToWatch}`);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [videoToWatch]);

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/store/app.slice.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PayloadAction, createSlice } from "@reduxjs/toolkit";
import { createSlice } from "@reduxjs/toolkit";

interface IAppState {
theme: "light" | "dark";
Expand Down

0 comments on commit 4a68501

Please sign in to comment.