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: updated styles of create insights links in sidebar #3173

Merged
merged 2 commits into from
Apr 12, 2024
Merged
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
11 changes: 5 additions & 6 deletions components/shared/AppSidebar/InsightsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { useState } from "react";
import { ChartBarSquareIcon, UsersIcon } from "@heroicons/react/24/outline";
import Link from "next/link";
import SkeletonWrapper from "components/atoms/SkeletonLoader/skeleton-wrapper";
import Button from "components/shared/Button/button";
import SidebarMenuItem from "./sidebar-menu-item";

interface InsightsPanelProps {
Expand Down Expand Up @@ -73,16 +72,16 @@ export const InsightsPanel = ({ title, insights, type, isLoading, workspaceId }:
})
) : (
<li className="py-1 px-3 text-sm flex flex-col w-full justify-between gap-2">
<p>You don&apos;t have any Insights yet!</p>
<Button
<p>You don&apos;t have any Insights yet</p>
nickytonline marked this conversation as resolved.
Show resolved Hide resolved
<Link
href={`/workspaces/${workspaceId}/${
type === "list" ? "contributor-insights" : "repository-insights"
}/new`}
variant="outline"
className="!text-xs"
className="text-orange-700 underline hover:no-underline"
aria-label={`Create a ${type === "list" ? "contributorinsight" : "repository insight"}`}
>
Create
</Button>
</Link>
</li>
)}
{insights.length > 3 ? (
Expand Down
Loading