+ {filterOptions.map(
+ (
+ option:
+ | { name: JSX.Element; range: string }
+ | { name: string; range: string },
+ index: number
+ ) => (
+
+ )
)}
-
+
+
-
- {displayedTeams.map((team: any, key: number) => {
- return (
-
- );
- })}
+ {teamExistsByTime && (
+
+
+ Looks like the time is{" "}
+ {time}.
+ {" "}
+
+ Why don't ya check out {teamExistsByTime.team_number} |{" "}
+ {teamExistsByTime.nickname}?
+
+ )}
+
+
+
+
+ {displayedTeams.map((team: any, key: number) => {
+ return (
+
+ );
+ })}
+
-
- >
- )}
+
+ >
>
);
}
diff --git a/tailwind.config.js b/tailwind.config.js
index b413caa..9f77f2a 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -19,7 +19,5 @@ module.exports = {
},
},
},
- plugins: [
- require("tailwindcss-animate"),
- ],
+ plugins: [require("tailwindcss-animate")],
};
diff --git a/utils/lookup.ts b/utils/lookup.ts
index 3df4f3b..60bb411 100644
--- a/utils/lookup.ts
+++ b/utils/lookup.ts
@@ -1,18 +1,15 @@
-export default function lookup
(
- value: number,
- object: Record
- ): T {
- const keys = Object.keys(object)
- .map((key) => parseInt(key))
- .sort((a, b) => a - b);
-
- for (let i = 0; i < keys.length; i++) {
- const key = keys[i];
-
- if (value < key) {
- return object[key];
- }
+export default function lookup(value: number, object: Record): T {
+ const keys = Object.keys(object)
+ .map((key) => parseInt(key))
+ .sort((a, b) => a - b);
+
+ for (let i = 0; i < keys.length; i++) {
+ const key = keys[i];
+
+ if (value < key) {
+ return object[key];
}
-
- return object[keys[keys.length - 1]];
- }
\ No newline at end of file
+ }
+
+ return object[keys[keys.length - 1]];
+}