mirror of
https://github.com/khairul169/code-share.git
synced 2026-10-24 11:53:58 +07:00
merge remote
This commit is contained in:
@@ -40,15 +40,13 @@ const FileViewer = ({ id }: Props) => {
|
||||
return <p>File not found.</p>;
|
||||
}
|
||||
|
||||
const { filename } = data;
|
||||
|
||||
if (!data.isFile) {
|
||||
return (
|
||||
<Suspense fallback={<LoadingLayout />}>
|
||||
<CodeEditor
|
||||
filename={filename}
|
||||
filename={data.filename}
|
||||
path={data.path}
|
||||
value={data?.content || ""}
|
||||
value={data.content || ""}
|
||||
formatOnSave
|
||||
onChange={(val) => {
|
||||
updateFileContent.mutate({
|
||||
|
||||
Reference in New Issue
Block a user