Skip to content
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

fix(website): add links #1592

Merged
merged 6 commits into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/website/guides/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ Cannon’s **command-line interface** (CLI) allows users to deploy, upgrade, and

Now that you have successfully installed Cannon, you can start building your blockchain applications! Here are some resources to help you get started:

* **Tutorials:** [Link to Cannon tutorials]
* **Examples:** [Link to Cannon example projects]
* **Documentation:** [Link to Cannon documentation]
* [**Examples**](https://github.com/usecannon/cannon/tree/dev/examples)
* [**Documentation**](https://usecannon.com/learn/cannonfile)

### Troubleshooting

Expand Down
2 changes: 1 addition & 1 deletion packages/website/src/components/ui/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const TooltipContent = React.forwardRef<
ref={ref}
sideOffset={sideOffset}
className={cn(
'z-50 overflow-hidden rounded-md bg-hover border-border bg-black px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
'z-[1500] overflow-hidden rounded-md bg-hover border-border bg-black px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
className
)}
{...props}
Expand Down
22 changes: 20 additions & 2 deletions packages/website/src/features/Search/PackageCard/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ import {
TableHeader,
TableRow,
} from '@/components/ui/table';
import { ArrowRightIcon, CaretSortIcon } from '@radix-ui/react-icons';
import {
ArrowRightIcon,
CaretSortIcon,
QuestionMarkCircledIcon,
} from '@radix-ui/react-icons';
import {
useReactTable,
flexRender,
Expand Down Expand Up @@ -135,13 +139,27 @@ export function DataTable<Data extends object>({
<Button
variant="ghost"
onClick={header.column.getToggleSortingHandler()}
className="h-8 px-2 -ml-2"
className="h-8 px-2 -ml-2 inline-flex items-center justify-center"
>
{flexRender(
header.column.columnDef.header,
header.getContext()
)}
<CaretSortIcon className="ml-2 h-4 w-4" />
{header.column.columnDef.accessorKey == 'preset' && (
<TooltipProvider>
<Tooltip>
<TooltipTrigger>
<QuestionMarkCircledIcon className="inline-block whitespace-nowrap align-sub" />
</TooltipTrigger>
<TooltipContent className="max-w-sm text-center">
Presets are useful for distinguishing multiple
deployments of the same protocol on the same
chain.
</TooltipContent>
</Tooltip>
</TooltipProvider>
)}
</Button>
) : (
flexRender(
Expand Down
Loading