Skip to content

Commit

Permalink
fix: unused import removed
Browse files Browse the repository at this point in the history
  • Loading branch information
boris0301 committed Jul 31, 2024
1 parent 6af1aed commit 55d6a59
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
4 changes: 3 additions & 1 deletion src/client/create-diagram-dialog/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ import ReactDOM from 'react-dom';
import CreateDiagramDialog from './components/create-diagram-dialog';
import './styles.css';

ReactDOM.render(<CreateDiagramDialog />, document.getElementById('index'));
const container = document.getElementById('index');
const root = ReactDOM.createRoot(container);
root.render(<CreateDiagramDialog />);
4 changes: 3 additions & 1 deletion src/client/edit-diagram-dialog/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ import EditDiagramDialog from './components/edit-diagram-dialog';

import './styles.css';

ReactDOM.render(<EditDiagramDialog />, document.getElementById('index'));
const container = document.getElementById('index');
const root = ReactDOM.createRoot(container);
root.render(<EditDiagramDialog />);
4 changes: 3 additions & 1 deletion src/client/select-diagram-dialog/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ import ReactDOM from 'react-dom';
import SelectDiagramDialog from './components/select-diagram-dialog';
import './styles.css';

ReactDOM.render(<SelectDiagramDialog />, document.getElementById('index'));
const container = document.getElementById('index');
const root = ReactDOM.createRoot(container);
root.render(<SelectDiagramDialog />);
15 changes: 7 additions & 8 deletions src/server/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ export const onOpen = () => {
};

export const openCreateDiagramDialog = () => {
const code = checkChartsLimit();
if (code === 401) {
DocumentApp.getUi().alert(
'You have reached your five diagram limit on the Free tier.'
);
return;
}
// const code = checkChartsLimit();
// if (code === 401) {
// DocumentApp.getUi().alert(
// 'You have reached your five diagram limit on the Free tier.'
// );
// return;
// }
const html = HtmlService.createHtmlOutputFromFile('create-diagram-dialog')
.append(
`<script>
Expand Down Expand Up @@ -58,7 +58,6 @@ export const openEditDiagramDialog = () => {
};

export const openSelectDiagramDialog = () => {
const doc = DocumentApp.getActiveDocument();
const html = HtmlService.createHtmlOutputFromFile('select-diagram-dialog')
.append(
`<script>
Expand Down

0 comments on commit 55d6a59

Please sign in to comment.