mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Clean up code duplication and excess changes
- Move ConsoleMessage interface to shared types file to eliminate duplication - Remove redundant handleSetConsoleMessages variable in PreviewPane - Update all imports to use shared ConsoleMessage type - Clean up excess comments and redundant code patterns
This commit is contained in:
1 parent
c8653e67dc
commit
a68d37452b
5 files changed
+14
-19
No files matched your search
@@ -20,13 +20,7 @@ import { StarButton } from '@/components/StarButton';
|
||||
|
||||
import { useBuildProject } from '@/hooks/useBuildProject';
|
||||
import { useIsProjectPreviewable } from '@/hooks/useIsProjectPreviewable';
|
||||
|
||||
// Console message type (copied from PreviewPane for minimal change)
|
||||
export interface ConsoleMessage {
|
||||
id: number;
|
||||
level: 'log' | 'warn' | 'error' | 'info' | 'debug';
|
||||
message: string;
|
||||
}
|
||||
import { ConsoleMessage } from '@/types/console';
|
||||
|
||||
export function ProjectView() {
|
||||
const { projectId } = useParams<{ projectId: string }>();
|
||||
|
||||
Reference in new issue
Block a user