-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve the conflicts in the finality provider component
- Loading branch information
Showing
30 changed files
with
5,434 additions
and
2,256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Create Sync PR from Main to Dev | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
call_sync_branch: | ||
uses: babylonlabs-io/.github/.github/workflows/[email protected] | ||
with: | ||
base_branch: "main" | ||
target_branch: "dev" | ||
reviewers: "jrwbabylonlab,gbarkhatov,jeremy-babylonlabs" | ||
secrets: inherit |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 0 additions & 101 deletions
101
src/app/components/FinalityProviders/FinalityProvider.tsx
This file was deleted.
Oops, something went wrong.
89 changes: 0 additions & 89 deletions
89
src/app/components/FinalityProviders/FinalityProviders.tsx
This file was deleted.
Oops, something went wrong.
81 changes: 0 additions & 81 deletions
81
src/app/components/StakersFinalityProviders/StakersFinalityProviders.tsx
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
src/app/components/Staking/FinalityProviders/FinalityProviderSearch.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { useDebounce } from "@uidotdev/usehooks"; | ||
import React, { useEffect, useState } from "react"; | ||
import { FiSearch } from "react-icons/fi"; | ||
|
||
interface FinalityProviderSearchProps { | ||
onSearch: (searchTerm: string) => void; | ||
} | ||
|
||
export const FinalityProviderSearch: React.FC<FinalityProviderSearchProps> = ({ | ||
onSearch, | ||
}) => { | ||
const [searchTerm, setSearchTerm] = useState(""); | ||
const debouncedSearchTerm = useDebounce(searchTerm, 300); | ||
|
||
useEffect(() => { | ||
onSearch(debouncedSearchTerm); | ||
}, [debouncedSearchTerm, onSearch]); | ||
|
||
const handleSearch = (e: React.ChangeEvent<HTMLInputElement>) => { | ||
setSearchTerm(e.target.value); | ||
}; | ||
|
||
return ( | ||
<div className="w-full"> | ||
<div className="relative"> | ||
<div className="absolute inset-y-0 left-0 flex items-center justify-center w-10"> | ||
<FiSearch className="text-sm md:text-lg" /> | ||
</div> | ||
<input | ||
type="text" | ||
placeholder="Search by Name or Public Key" | ||
value={searchTerm} | ||
onChange={handleSearch} | ||
className="w-full pl-10 pr-4 py-2 text-sm bg-transparent border-b border-gray-300 focus:outline-none focus:border-primary" | ||
/> | ||
</div> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.