Skip to content

Commit

Permalink
Display the recent DS blocks view conditionally. (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaron-zilliqa authored Jun 28, 2024
1 parent 09d35d1 commit d1f768b
Show file tree
Hide file tree
Showing 33 changed files with 218 additions and 539 deletions.
134 changes: 0 additions & 134 deletions .github/workflows/docker-publish.yaml.orig

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/docker-publish.yaml.rej

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/integration-deployment.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions .gitignore.orig

This file was deleted.

12 changes: 0 additions & 12 deletions .gitignore.rej

This file was deleted.

3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ scripts
chains
topic0
trustwallet

node_modules
.github
12 changes: 0 additions & 12 deletions .storybook/main.ts.rej

This file was deleted.

6 changes: 0 additions & 6 deletions .storybook/preview-head.html.rej

This file was deleted.

20 changes: 0 additions & 20 deletions .storybook/preview.tsx.rej

This file was deleted.

42 changes: 0 additions & 42 deletions Dockerfile.rej

This file was deleted.

10 changes: 0 additions & 10 deletions README.md.rej

This file was deleted.

2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const App = () => {
<Route
path="block/:blockNumber/txs"
element={<BlockTransactions />}
/>
/>
<Route
path="dsblock/:dsBlockNumberOrHash"
element={<DSBlock />}
Expand Down
5 changes: 2 additions & 3 deletions src/ConnectionErrorPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ConnectionErrorPanel: React.FC<ConnectionErrorPanelProps> = ({
)}
{connStatus === ConnectionStatus.NOT_ERIGON && (
<>
<Step type="ok" msg="It is a Zilliqa node" />
<Step type="ok" msg="It is a Zilliqa node" />
<Step type="error" msg="It does not seem to be an Zilliqa node">
Make sure your Zilliqa node is running.
</Step>
Expand All @@ -43,8 +43,7 @@ const ConnectionErrorPanel: React.FC<ConnectionErrorPanelProps> = ({
<Step
type="error"
msg="It does not seem to contain up-to-date Otterscan patches"
>
</Step>
></Step>
</>
)}
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Otter from "./otter.png?w=128&h=128&webp";
const CameraScanner = lazy(() => import("./search/CameraScanner"));
type HeaderProps = { sourcifyPresent: boolean };

const Header: FC<HeaderProps> = ({ sourcifyPresent }) => {
const Header: FC<HeaderProps> = ({ sourcifyPresent }) => {
const { config, provider } = useContext(RuntimeContext);
const [searchRef, handleChange, handleSubmit] = useGenericSearch();
const [isScanning, setScanning] = useState<boolean>(false);
Expand Down Expand Up @@ -41,7 +41,7 @@ const Header: FC<HeaderProps> = ({ sourcifyPresent }) => {
</div>
</Link>
<div className="inline sm:hidden">
{ sourcifyPresent && <SourcifyMenu /> }
{sourcifyPresent && <SourcifyMenu />}
</div>
</div>
<div className="flex items-baseline gap-x-3">
Expand Down Expand Up @@ -87,7 +87,7 @@ const Header: FC<HeaderProps> = ({ sourcifyPresent }) => {
</button>
</form>
<div className="hidden sm:inline self-stretch">
{ sourcifyPresent && <SourcifyMenu /> }
{sourcifyPresent && <SourcifyMenu />}
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit d1f768b

Please sign in to comment.