Skip to content

Commit

Permalink
Merge branch 'main' of github.com:blockscout/frontend into tom2drum/i…
Browse files Browse the repository at this point in the history
…ssue-1278
  • Loading branch information
tom2drum committed Oct 11, 2023
2 parents aecb344 + e540942 commit a132cbf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
run: yarn --frozen-lockfile --ignore-optional

- name: Run ESLint
run: yarn lint:eslint
Expand Down Expand Up @@ -74,10 +74,10 @@ jobs:

- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
run: yarn --frozen-lockfile --ignore-optional

- name: Install script dependencies
run: cd ./deploy/tools/envs-validator && yarn --frozen-lockfile
run: cd ./deploy/tools/envs-validator && yarn --frozen-lockfile --ignore-optional

- name: Copy secrets file
run: cp ./.env.example ./configs/envs/.env.secrets
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:

- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
run: yarn --frozen-lockfile --ignore-optional

- name: Run Jest
run: yarn test:jest
Expand Down
6 changes: 5 additions & 1 deletion lib/hooks/useIssueUrl.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { useRouter } from 'next/router';
import React from 'react';

import config from 'configs/app';

export default function useIssueUrl(backendVersion: string | undefined) {
const [ isLoading, setIsLoading ] = React.useState(true);
const router = useRouter();

React.useEffect(() => {
setIsLoading(false);
Expand All @@ -23,6 +25,8 @@ export default function useIssueUrl(backendVersion: string | undefined) {
'additional-information': `**User Agent:** ${ window.navigator.userAgent }`,
});
return `https://github.com/blockscout/blockscout/issues/new/?${ searchParams.toString() }`;
}, [ backendVersion, isLoading ]);
// we need to update link whenever page url changes
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [ backendVersion, isLoading, router.asPath ]);

}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const SearchBarSuggestBlock = ({ data, isMobile, searchTerm }: Props) => {
{ icon }
{ blockNumber }
</Flex>
<Flex columnGap={ 3 } minW={ 0 }>
<Flex columnGap={ 3 } minW={ 0 } alignItems="center">
{ data.block_type === 'reorg' && <Tag flexShrink={ 0 }>Reorg</Tag> }
{ hash }
</Flex>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a132cbf

Please sign in to comment.