Skip to content

Commit b1ab946

Browse files
authored
fix: nit--fixes from PR #43 (#44)
1 parent ff052dd commit b1ab946

File tree

8 files changed

+30
-24
lines changed

8 files changed

+30
-24
lines changed

src/app/(explore)/categories/page.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
"use client"
2-
31
import React from "react";
4-
import TranscriptContentPage from "../../../components/explore/TranscriptContentPage";
5-
import allCategoriesTopic from "../../../../public/tag-data.json";
2+
import TranscriptContentPage from "@/components/explore/TranscriptContentPage";
3+
import allCategoriesTopic from "@/public/tag-data.json";
64

75
const CategoriesPage = () => {
86

src/app/(explore)/speakers/page.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
"use client"
2-
31
import React from "react";
4-
import TranscriptContentPage from "../../../components/explore/TranscriptContentPage";
5-
import allSpeakers from "../../../../public/speaker-data.json";
2+
import TranscriptContentPage from "@/components/explore/TranscriptContentPage";
3+
import allSpeakers from "@/public/speaker-data.json";
64

75
const SpeakerPage = () => {
86

src/app/(explore)/topics/page.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
"use client";
2-
31
import React from "react";
4-
import TranscriptContentPage from "../../../components/explore/TranscriptContentPage";
5-
import allTopics from "../../../../public/topics-data.json";
2+
import TranscriptContentPage from "@/components/explore/TranscriptContentPage";
3+
import allTopics from "@/public/topics-data.json";
64

75
const TopicsPage = () => {
86

src/app/layout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import type { Metadata } from "next";
22
import { Manrope } from "next/font/google";
33
import "@bitcoin-dev-project/bdp-ui/styles.css"
44
import "./globals.css";
5-
6-
75
import Script from "next/script";
86
import Header from "@/components/layout/Header";
97

@@ -26,7 +24,7 @@ export default function RootLayout({
2624
<html lang='en'>
2725
<body className={manrope.className}>
2826
<Header />
29-
<div className="">{children}</div>
27+
<div>{children}</div>
3028
</body>
3129
<Script async src='https://visits.bitcoindevs.xyz/script.js' data-website-id='06384ada-7f1c-44c2-a6d9-d830fb23e122'></Script>
3230
</html>

src/components/explore/AlphabetGrouping.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getAllCharactersProperty, GroupedData } from "@/utils";
22
import { alphabeticalArrangement } from "@/utils/data";
33
import Link from "next/link";
4-
import React, { Dispatch, SetStateAction, useState } from "react";
4+
import React from "react";
55
export interface IAlphabetGrouping {
66
currentGroup: string;
77
groupedData: GroupedData | never[];
@@ -24,7 +24,7 @@ const AlphabetGrouping = ({ currentGroup, groupedData }: IAlphabetGrouping) => {
2424
href={`#${char.alp.toLowerCase()}`}
2525
className={` flex justify-center items-center w-8 h-8 text-base 2xl:h-10 2xl:w-10 2xl:text-lg
2626
${
27-
currentGroup == char.alp
27+
currentGroup === char.alp
2828
? "text-orange-custom-100 bg-orange-custom-900 rounded-[4px] font-semibold"
2929
: ""
3030
} `}

src/components/explore/ExploreNavigation.tsx

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { usePathname } from "next/navigation";
55
import { twMerge } from "tailwind-merge";
66
import { ArrowLinkUpRight } from "@bitcoin-dev-project/bdp-ui/icons";
77

8-
const ExploreNavigation = () => {
8+
const ExploreNavigation = () => {
99
return (
1010
<section className="max-md:hidden md:flex sticky top-0 flex-col flex-none gap-4 2xl:gap-6 w-full max-w-[240px] 2xl:max-w-[320px]">
11-
<div className="flex flex-col gap-4 2xl:gap-6 rounded-lg px-5 py-[23px] border border-[#CCCCCC]">
11+
<div className="flex flex-col gap-4 2xl:gap-6 rounded-lg px-5 py-[23px] border border-gray-custom-1200">
1212
{ExploreNavigationItems.map((item) => (
1313
<ExploreNavigationItem
1414
key={item.href}
@@ -17,11 +17,20 @@ const ExploreNavigation = () => {
1717
/>
1818
))}
1919
</div>
20-
<div className="flex flex-col gap-4 rounded-lg p-4 border border-[#CCCCCC]">
20+
<div className="flex flex-col gap-4 rounded-lg p-4 border border-gray-custom-1200">
2121
<p className="text-sm 2xl:text-lg font-semibold">Review Transcripts</p>
22-
<Link href="https://review.btctranscripts.com" target="_blank" className="relative flex items-center gap-1 w-fit text-xs 2xl:text-base font-semibold before:content-[''] before:absolute before:bottom-[-3px] before:left-0 before:w-full before:h-[1px] before:bg-black hover:before:h-[2px] before:transition-all">
22+
<Link
23+
href="https://review.btctranscripts.com"
24+
target="_blank"
25+
className="relative flex items-center gap-1 w-fit text-xs 2xl:text-base font-semibold before:content-[''] before:absolute before:bottom-[-3px] before:left-0 before:w-full before:h-[1px] before:bg-black hover:before:h-[2px] before:transition-all"
26+
>
2327
<span className="leading-none">Earn Sats</span>
24-
<span className=""><ArrowLinkUpRight className="w-4 2xl:w-5" pathProps={{strokeWidth: 1.8}}/></span>
28+
<span className="">
29+
<ArrowLinkUpRight
30+
className="w-4 2xl:w-5"
31+
pathProps={{ strokeWidth: 1.8 }}
32+
/>
33+
</span>
2534
</Link>
2635
</div>
2736
</section>
@@ -37,6 +46,7 @@ const ExploreNavigationItem = ({
3746
}) => {
3847
const pathname = usePathname();
3948
const isActive = pathname === href;
49+
4050
return (
4151
<Link
4252
data-active={isActive}

src/components/explore/TranscriptContentPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import React, { FC, useEffect, useRef, useState } from "react";
1+
"use client"
2+
3+
import React, { FC, useState } from "react";
24
import BreadCrumbs from "../common/BreadCrumbs";
35
import GroupedTranscriptContent from "./GroupedTranscriptContent";
46
import AlphabetGrouping from "./AlphabetGrouping";

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
],
2020
"paths": {
2121
"@/*": ["./src/*"],
22+
"@/components/*": ["./src/components/*"],
23+
"@/public/*": ["./public/*"],
2224
"contentlayer/generated": ["./.contentlayer/generated"],
2325
"bdp-ui/*": ["./node_modules/bdp-ui/dist/*"]
2426
}
@@ -32,5 +34,5 @@
3234
".contentlayer/generated",
3335
".contentlayer/generated/**/*.json"
3436
],
35-
"exclude": ["node_modules", ".contentlayer"]
37+
"exclude": ["node_modules", ".contentlayer", "public/*"]
3638
}

0 commit comments

Comments
 (0)