Connect, collaborate, and grow with a community of TypeScript developers
stuff
Chris Bautistafac014ce9cb7
diff --git a/src/components/challenge/description-panel.tsx b/src/components/challenge/description-panel.tsxindex 5de9accc..1702cf9c 100644--- a/src/components/challenge/description-panel.tsx+++ b/src/components/challenge/description-panel.tsx@@ -81,8 +81,12 @@ export function DescriptionPanel({ challenge }: Props) {<span className="self-end text-lg text-gray-500">{votes}</span></Button>)}- <Bookmark className="stroke-gray-500" />- <Share className="stroke-gray-500" />+ <Button variant="ghost" className="p-1">+ <Bookmark size={20} className="stroke-gray-500 hover:stroke-gray-400" />+ </Button>+ <Button variant="ghost" className="p-1">+ <Share size={20} className="stroke-gray-500 hover:stroke-gray-400" />+ </Button></div><div className="prose-invert prose-h3:text-xl">{/* @ts-ignore */}diff --git a/src/components/challenge/editor/index.tsx b/src/components/challenge/editor/index.tsxindex f6a9b3cb..a35162e3 100644--- a/src/components/challenge/editor/index.tsx+++ b/src/components/challenge/editor/index.tsx@@ -15,6 +15,7 @@ import { SettingsForm } from '../settings-form';import { useEditorSettingsStore } from '../settings-store';import { createTwoslashInlayProvider } from './twoslash';import { VimStatusBar, loadVim } from './vimMode';+import { Challenge } from '@prisma/client';declare global {// eslint-disable-next-line no-var@@ -142,7 +143,7 @@ const onMount =};interface Props {- prompt: string;+ prompt: Challenge['prompt'];}export const CodePanel = ({ prompt }: Props) => {const { theme } = useTheme();@@ -162,12 +163,12 @@ export const CodePanel = ({ prompt }: Props) => {}, [settings]);return (- <>- <div className="container flex items-end space-y-2 bg-muted py-4">+ <div className="flex h-full flex-1 flex-col">+ <div className="container flex h-[40px] items-center space-y-2 bg-muted"><div className="ml-auto flex w-full space-x-2 sm:justify-end"><Dialog><DialogTrigger>- <Settings />+ <Settings size={20} className="stroke-gray-500 hover:stroke-gray-400" /></DialogTrigger><DialogContent className="w-[200px]"><DialogHeader>@@ -190,7 +191,7 @@ export const CodePanel = ({ prompt }: Props) => {className="flex-1"/><VimStatusBar />- </>+ </div>);};diff --git a/src/components/challenge/index.tsx b/src/components/challenge/index.tsxindex b83c4140..7cfbf437 100644--- a/src/components/challenge/index.tsx+++ b/src/components/challenge/index.tsx@@ -35,9 +35,7 @@ export async function Challenge({ id }: Props) {<div className="flex h-full gap-2 p-4"><DescriptionPanel challenge={challenge} />- <div className="flex h-full flex-1 flex-col">- <CodePanel prompt={challenge.prompt} />- </div>+ <CodePanel prompt={challenge.prompt} /></div>);}