Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos in conments #1071

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/containers/Blocks/Dag/lib-dag.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function createRender(container, width, height) {
const ctx = canvas.getContext('2d');
ctx.scale(devicePixelRatio, devicePixelRatio);

//hit canvas is detatched from dom
//hit canvas is detached from dom
const hitCanvas = document.createElement('canvas');
hitCanvas.width = width;
hitCanvas.height = height;
Expand Down
2 changes: 1 addition & 1 deletion src/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export function App() {
const { pathname } = useLocation();

useEffect(() => {
// theme switch by change body classname, reflect to css variable defination
// theme switch by change body classname, reflect to css variable definition
// const classList = document.body.classList;
// let prev = 'pow';
// let next = 'pos';
Expand Down
2 changes: 1 addition & 1 deletion src/utils/hooks/useGetTxnStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const useGetTxnStatus = (
timeout?: number, // timeout to polling txn status,
method?, // getTransactionByHash or getTransactionReceipt,
) => {
// 0 for success, 1 for error occured, null when the transaction is skipped or not packed.
// 0 for success, 1 for error occurred, null when the transaction is skipped or not packed.
// eslint-disable-next-line react-hooks/rules-of-hooks
const [status, setStatus] = useState({});
const markedHashs = useRef({});
Expand Down