From 7d21b3066df86ee79902341b03b792d1e0010e9f Mon Sep 17 00:00:00 2001 From: LordMathis Date: Wed, 9 Oct 2024 21:00:16 +0200 Subject: [PATCH] Migrate ContentView --- frontend/src/components/ContentView.js | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/frontend/src/components/ContentView.js b/frontend/src/components/ContentView.js index 833c74b..48351f3 100644 --- a/frontend/src/components/ContentView.js +++ b/frontend/src/components/ContentView.js @@ -1,7 +1,7 @@ import React from 'react'; +import { Text, Center } from '@mantine/core'; import Editor from './Editor'; import MarkdownPreview from './MarkdownPreview'; -import { Text } from '@geist-ui/core'; import { getFileUrl } from '../services/api'; import { isImageFile } from '../utils/fileHelpers'; @@ -15,22 +15,17 @@ const ContentView = ({ }) => { if (!selectedFile) { return ( -
- No file selected. -
+
+ + No file selected. + +
); } if (isImageFile(selectedFile)) { return ( -
+
{selectedFile} -
+ ); }