Commit
·
6580e54
1
Parent(s):
a14caa5
little better naming
Browse files
src/components/{ProviderSummary.tsx → OrganizationButton.tsx}
RENAMED
@@ -2,13 +2,13 @@ import React from "react";
|
|
2 |
import { ProviderInfo, CalendarData } from "../types/heatmap";
|
3 |
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./ui/tooltip";
|
4 |
|
5 |
-
interface
|
6 |
provider: ProviderInfo;
|
7 |
calendarData: CalendarData;
|
8 |
rank: number;
|
9 |
}
|
10 |
|
11 |
-
const
|
12 |
provider,
|
13 |
calendarData,
|
14 |
rank
|
@@ -85,4 +85,4 @@ const ProviderSummary: React.FC<ProviderSummaryProps> = ({
|
|
85 |
);
|
86 |
};
|
87 |
|
88 |
-
export default
|
|
|
2 |
import { ProviderInfo, CalendarData } from "../types/heatmap";
|
3 |
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./ui/tooltip";
|
4 |
|
5 |
+
interface OrganizationButtonProps {
|
6 |
provider: ProviderInfo;
|
7 |
calendarData: CalendarData;
|
8 |
rank: number;
|
9 |
}
|
10 |
|
11 |
+
const OrganizationButton: React.FC<OrganizationButtonProps> = ({
|
12 |
provider,
|
13 |
calendarData,
|
14 |
rank
|
|
|
85 |
);
|
86 |
};
|
87 |
|
88 |
+
export default OrganizationButton;
|
src/pages/index.tsx
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import React, { useState, useEffect } from "react";
|
2 |
import { ProviderInfo, ModelData, CalendarData } from "../types/heatmap";
|
3 |
-
import
|
4 |
import HeatmapGrid from "../components/HeatmapGrid";
|
5 |
import Navbar from "../components/Navbar";
|
6 |
import { getProviders } from "../utils/ranking";
|
@@ -49,7 +49,7 @@ function Page({
|
|
49 |
<div className="overflow-x-auto scrollbar-hide">
|
50 |
<div className="flex gap-6 px-4 py-2 min-w-max justify-center">
|
51 |
{providers.map((provider, index) => (
|
52 |
-
<
|
53 |
key={provider.fullName || provider.authors[0]}
|
54 |
provider={provider}
|
55 |
calendarData={calendarData}
|
|
|
1 |
import React, { useState, useEffect } from "react";
|
2 |
import { ProviderInfo, ModelData, CalendarData } from "../types/heatmap";
|
3 |
+
import OrganizationButton from "../components/OrganizationButton";
|
4 |
import HeatmapGrid from "../components/HeatmapGrid";
|
5 |
import Navbar from "../components/Navbar";
|
6 |
import { getProviders } from "../utils/ranking";
|
|
|
49 |
<div className="overflow-x-auto scrollbar-hide">
|
50 |
<div className="flex gap-6 px-4 py-2 min-w-max justify-center">
|
51 |
{providers.map((provider, index) => (
|
52 |
+
<OrganizationButton
|
53 |
key={provider.fullName || provider.authors[0]}
|
54 |
provider={provider}
|
55 |
calendarData={calendarData}
|