mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
fix the PR comments
This commit is contained in:
@@ -1062,29 +1062,24 @@ export default function ControlPanel({
|
||||
}));
|
||||
},
|
||||
},
|
||||
],
|
||||
function: () => {},
|
||||
},
|
||||
documentation: {
|
||||
children: [
|
||||
{
|
||||
Markdown: () => {
|
||||
setModal(MODAL.CODE);
|
||||
const result = jsonToDocumentation({
|
||||
tables: tables,
|
||||
relationships: relationships,
|
||||
notes: notes,
|
||||
subjectAreas: areas,
|
||||
database: database,
|
||||
title: title,
|
||||
});
|
||||
setExportData((prev) => ({
|
||||
...prev,
|
||||
data: result,
|
||||
extension: "md",
|
||||
}));
|
||||
}
|
||||
{
|
||||
Readme: () => {
|
||||
setModal(MODAL.CODE);
|
||||
const result = jsonToDocumentation({
|
||||
tables: tables,
|
||||
relationships: relationships,
|
||||
notes: notes,
|
||||
subjectAreas: areas,
|
||||
database: database,
|
||||
title: title,
|
||||
});
|
||||
setExportData((prev) => ({
|
||||
...prev,
|
||||
data: result,
|
||||
extension: "md",
|
||||
}));
|
||||
}
|
||||
},
|
||||
],
|
||||
function: () => {},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user