Skip to content

Commit

Permalink
Merge branch 'master' of github.com:calimero-network/core into petarj…
Browse files Browse the repository at this point in the history
…uki7/cli
  • Loading branch information
petarjuki7 committed Jun 18, 2024
2 parents 139ba65 + 25a6cf5 commit 8548123
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/calimero_node_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ jobs:
create_release:
runs-on: ubuntu-latest
needs: build
if: ${{ github.ref == 'refs/heads/master' || (github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master') }}
outputs:
release_exists: ${{ steps.check_release.outputs.release_exists }}
version: ${{ needs.build.outputs.version }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/calimero_node_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if gh release view "v${{ github.event.inputs.version }}" >/dev/null 2>&1; then
VERSION=${{ needs.build.outputs.version }}
if gh release view "v$VERSION" >/dev/null 2>&1; then
echo "release_exists=true" >> $GITHUB_ENV
else
echo "release_exists=false" >> $GITHUB_ENV
Expand Down
2 changes: 0 additions & 2 deletions README.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Welcome to Calimero

[![Discord](https://dcbadge.vercel.app/api/server/urJeMtRRMu?style=flat&theme=default-inverted)](https://discord.gg/urJeMtRRMu)
[![Telegram Group](https://img.shields.io/badge/Join-Telegram%20Group-blue.svg?logo=telegram)](https://t.me/+_6h-gJlnXO83OGVk)
[![Docs deploy gh action](https://github.com/calimero-network/core/actions/workflows/docusaurus_deploy.yml/badge.svg)](https://github.com/calimero-network/core/actions/workflows/docusaurus_deploy.yml)
[![SDK publish gh action](https://github.com/calimero-network/core/actions/workflows/calimero_sdk_publish.yml/badge.svg)](https://github.com/calimero-network/core/actions/workflows/calimero_sdk_publish.yml)
[![npm version](https://badge.fury.io/js/@calimero-is-near%2Fcalimero-p2p-sdk.svg)](https://badge.fury.io/js/@calimero-is-near%2Fcalimero-p2p-sdk)
[![License](https://img.shields.io/badge/License-Apache--2.0-blue)](#license)
Expand Down
2 changes: 1 addition & 1 deletion packages/calimero-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@calimero-is-near/calimero-p2p-sdk",
"version": "0.0.20",
"version": "0.0.21",
"description": "Javascript library to interact with Calimero P2P node",
"type": "module",
"main": "lib/index.js",
Expand Down
8 changes: 6 additions & 2 deletions packages/calimero-sdk/src/setup/SetupModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useCallback, useState } from 'react';
import { useCallback, useEffect, useState } from 'react';
import apiClient from '../api';
import React from 'react';
import Spinner from '../components/loader/Spinner';
Expand Down Expand Up @@ -87,9 +87,13 @@ export const SetupModal: React.FC<SetupModalProps> = (
) => {
const [error, setError] = useState<string | null>(null);
const [loading, setLoading] = useState(false);
const [url, setUrl] = useState<string | null>(props.getNodeUrl());
const [url, setUrl] = useState<string | null>(null);
const MINIMUM_LOADING_TIME_MS = 1000;

useEffect(() => {
setUrl(props.getNodeUrl());
}, [props]);

function validateUrl(value: string): boolean {
try {
new URL(value);
Expand Down

0 comments on commit 8548123

Please sign in to comment.