Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 695557e

Browse files
fix: some things
1 parent ffe6045 commit 695557e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

‎src/All Assessment/assessment01/StopWatch.jsx‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import React, { useEffect, useState } from "react";
22
import '../../index.css'
33
import GoToHome from "../../Components/GoToHome";
4-
// import GoToHome from "../../Components/GoToHome";
54

65
const StopWatch = () => {
76
const [clicked, setClicked] = useState(false);
87
const [time, setTime] = useState(0);
98

10-
const handleclick = () => {
11-
setClicked(!clicked);
12-
};
9+
1310

1411
useEffect(() => {
1512
let interval;
@@ -29,7 +26,7 @@ const StopWatch = () => {
2926
<div className="text-6xl">{time}</div>
3027
<button
3128
className="custom-button"
32-
onClick={handleclick}
29+
onClick={()=>setClicked(!clicked)}
3330
>
3431
{clicked ? 'Stop' : 'Start'}
3532
</button>

‎src/All Assessment/assessment21/MyToaster.jsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ const Toast = ({ close, time = 6 }) => {
6161
justifyContent: "center",
6262
alignItems: "center",
6363
gap: "20px",
64-
backgroundColor: "white",
6564
padding: "10px",
6665
backgroundColor: "red",
6766
}}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /