Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyphilemon committed Jan 27, 2025
1 parent bd435b7 commit 7989b73
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 214 deletions.
2 changes: 1 addition & 1 deletion components/block-actions.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button } from './ui/button';
import { Tooltip, TooltipContent, TooltipTrigger } from './ui/tooltip';
import { blockDefinitions, ConsoleOutput, UIBlock } from './block';
import { blockDefinitions, UIBlock } from './block';
import { Dispatch, memo, SetStateAction } from 'react';
import { BlockActionContext } from './create-block';
import { cn } from '@/lib/utils';
Expand Down
4 changes: 2 additions & 2 deletions components/document-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,11 @@ const DocumentContent = ({ document }: { document: Document }) => {
return (
<div className={containerClassName}>
{document.kind === 'text' ? (
<Editor {...commonProps} />
<Editor {...commonProps} onSaveContent={() => {}} />
) : document.kind === 'code' ? (
<div className="flex flex-1 relative w-full">
<div className="absolute inset-0">
<CodeEditor {...commonProps} />
<CodeEditor {...commonProps} onSaveContent={() => {}} />
</div>
</div>
) : document.kind === 'image' ? (
Expand Down
2 changes: 1 addition & 1 deletion components/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function areEqual(prevProps: EditorProps, nextProps: EditorProps) {
prevProps.isCurrentVersion === nextProps.isCurrentVersion &&
!(prevProps.status === 'streaming' && nextProps.status === 'streaming') &&
prevProps.content === nextProps.content &&
prevProps.saveContent === nextProps.saveContent
prevProps.onSaveContent === nextProps.onSaveContent
);
}

Expand Down
210 changes: 0 additions & 210 deletions components/run-code-button.tsx

This file was deleted.

0 comments on commit 7989b73

Please sign in to comment.