-
Notifications
You must be signed in to change notification settings - Fork 8
add datasets #458
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
Merged
Merged
add datasets #458
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
b3bc6fc
prepare routes
nikgraf 179c6ca
fetch data
nikgraf 463792d
fix active tab
nikgraf 4e0588f
query assets, dapps and investment rounds
nikgraf ffdf7be
add schema and mapping to the next template
nikgraf 073c26d
fix typo and load 100 per dataset
nikgraf dd063d4
migrate update to next template
nikgraf 00e126f
add changeset
nikgraf 788908f
cleanup
nikgraf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
apps/create-hypergraph/template-vite-react/src/components/explore-tabs.tsx
This file contains hidden or 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,36 @@ | ||
import { Link } from '@tanstack/react-router'; | ||
import { clsx } from 'clsx'; | ||
|
||
type Tab = { | ||
label: string; | ||
to: string; | ||
}; | ||
|
||
const tabs: Tab[] = [ | ||
{ label: 'Projects', to: '/explore-public-knowledge/projects' }, | ||
{ label: 'dApps', to: '/explore-public-knowledge/dapps' }, | ||
{ label: 'Investment Rounts', to: '/explore-public-knowledge/investment-rounts' }, | ||
{ label: 'Asset Market', to: '/explore-public-knowledge/asset-market' }, | ||
]; | ||
|
||
export function ExploreTabs() { | ||
return ( | ||
<div className="w-full flex justify-center"> | ||
<div className="inline-flex rounded-lg border bg-background p-1"> | ||
{tabs.map((tab) => ( | ||
<Link | ||
key={tab.to} | ||
to={tab.to} | ||
activeOptions={{ exact: false }} | ||
activeProps={{ className: 'bg-primary text-primary-foreground' }} | ||
className={clsx( | ||
'px-4 py-2 text-sm rounded-md transition-colors text-foreground hover:bg-accent hover:text-accent-foreground', | ||
)} | ||
> | ||
{tab.label} | ||
</Link> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.