Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion app/journal-pioneers/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const metadata: Metadata = buildOpenGraphMetadata({

export default function PioneersPage() {
return (
<PageLayout rightSidebar={<RHJRightSidebar showBanner={false} />}>
<PageLayout rightSidebar={<RHJRightSidebar />}>
<div className="mb-6">
<Link
href="/journal"
Expand Down
2 changes: 1 addition & 1 deletion app/journal/JournalPageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function JournalPageContent() {
lastClickedEntryId={lastClickedEntryId ?? undefined}
noEntriesElement={
<div className="py-12 text-center">
<p className="text-gray-400 text-sm">No journal entries yet</p>
<p className="text-gray-400 text-sm">No Registered Reports yet</p>
</div>
}
renderEntry={({
Expand Down
2 changes: 1 addition & 1 deletion app/journal/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export default function JournalNewPage() {
rightSidebar={
<div className="space-y-3">
<AboutTheJournal />
<RHJRightSidebar showBanner={false} />
<RHJRightSidebar />
</div>
}
>
Expand Down
9 changes: 0 additions & 9 deletions app/layouts/components/RightSidebarContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import { ReactNode, Suspense } from 'react';
import { usePathname } from 'next/navigation';
import { RHJRightSidebar } from '@/components/Journal/RHJRightSidebar';
import { cn } from '@/lib/utils';
import { useWorkTab } from '@/components/work/WorkHeader/WorkTabContext';
import { SwipeableDrawer } from '@/components/ui/SwipeableDrawer';
Expand All @@ -14,20 +13,12 @@ function getSidebarInstanceKey(pathname: string, rightSidebar: boolean | ReactNo
return `custom:${pathname}`;
}

if (pathname.startsWith('/paper/create')) {
return 'rhj-create';
}

return 'default';
}

function RightSidebarContent({ rightSidebar }: { rightSidebar: boolean | ReactNode }) {
const pathname = usePathname();

if (pathname.startsWith('/paper/create')) {
return <RHJRightSidebar showBanner={false} />;
}

if (typeof rightSidebar === 'boolean') {
return <RightSidebar />;
}
Expand Down
7 changes: 0 additions & 7 deletions app/layouts/topbar/pageRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,6 @@ const ROUTE_RULES: RouteRule[] = [
icon: <FontAwesomeIcon icon={faBookmarkLight} fontSize={24} color="#000" />,
}),
},
{
match: (p) => p.startsWith('/paper/create'),
getInfo: () => ({
title: 'Submit your paper',
icon: <Icon name="submit2" size={24} className="text-gray-900" />,
}),
},
{
match: (p) => p.startsWith('/earn'),
getInfo: () => ({
Expand Down
39 changes: 0 additions & 39 deletions app/paper/create/PaperActionCard.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions app/paper/create/components/DeclarationCheckbox.tsx

This file was deleted.

211 changes: 0 additions & 211 deletions app/paper/create/page.tsx

This file was deleted.

Loading