Skip to content

Commit

Permalink
fix: reverted a file that accidentally went in cee5fa8 (#3979)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline authored Aug 16, 2024
1 parent e39e309 commit d776a13
Showing 1 changed file with 19 additions and 32 deletions.
51 changes: 19 additions & 32 deletions pages/s/[org]/[repo]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import LanguagePill, { getLanguageTopic } from "components/shared/LanguagePill/L
import OssfChart from "components/Repositories/OssfChart";
import { setQueryParams } from "lib/utils/query-params";
import Tooltip from "components/atoms/Tooltip/tooltip";
import { CopyContainer } from "components/shared/CopyContainer";

const AddToWorkspaceModal = dynamic(() => import("components/Repositories/AddToWorkspaceModal"), {
ssr: false,
Expand Down Expand Up @@ -357,37 +356,25 @@ export default function RepoPage({ repoData, ogImageUrl }: RepoPageProps) {
<section className="flex flex-col gap-4 lg:grid lg:grid-cols-12 lg:max-h-[50rem]">
<div className="lg:col-span-8 flex flex-col gap-4">
<div className="flex gap-4 h-full flex-col lg:flex-row">
<CopyContainer
options={{
windowWidth: 1700,
}}
>
<ContributorConfidenceChart
contributorConfidence={repoStats?.contributor_confidence}
isError={isError}
isLoading={isLoading}
onLearnMoreClick={() =>
posthog.capture("Repo Pages: clicked Contributor Confidence docs", {
repository: repoData.full_name,
})
}
/>
</CopyContainer>
<CopyContainer
options={{
windowWidth: 1700,
}}
>
<OssfChart
repository={repoData.full_name}
totalScore={repoData.ossf_scorecard_total_score}
dependencyUpdateScore={repoData.ossf_scorecard_dependency_update_score}
maintainedScore={repoData.ossf_scorecard_maintained_score}
fuzzingScore={repoData.ossf_scorecard_fuzzing_score}
isLoading={false}
isError={!repoData.ossf_scorecard_total_score}
/>
</CopyContainer>
<ContributorConfidenceChart
contributorConfidence={repoStats?.contributor_confidence}
isError={isError}
isLoading={isLoading}
onLearnMoreClick={() =>
posthog.capture("Repo Pages: clicked Contributor Confidence docs", {
repository: repoData.full_name,
})
}
/>
<OssfChart
repository={repoData.full_name}
totalScore={repoData.ossf_scorecard_total_score}
dependencyUpdateScore={repoData.ossf_scorecard_dependency_update_score}
maintainedScore={repoData.ossf_scorecard_maintained_score}
fuzzingScore={repoData.ossf_scorecard_fuzzing_score}
isLoading={false}
isError={!repoData.ossf_scorecard_total_score}
/>
</div>

<RossChart
Expand Down

0 comments on commit d776a13

Please sign in to comment.