chore: add dev guard for memo chat (#1968)

This commit is contained in:
boojack
2023-07-16 13:02:52 +08:00
committed by GitHub
parent 032509ddba
commit 220cba84ae
17 changed files with 284 additions and 163 deletions

View File

@ -1,4 +1,3 @@
import { Button } from "@mui/joy";
import { isNumber, last, uniq } from "lodash-es";
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { toast } from "react-hot-toast";
@ -422,9 +421,9 @@ const MemoEditor = (props: Props) => {
<div className="editor-footer-container">
<MemoVisibilitySelector value={state.memoVisibility} onChange={handleMemoVisibilityChange} />
<div className="buttons-container">
<Button disabled={!allowSave} onClick={handleSaveBtnClick}>
<button className="action-btn confirm-btn" disabled={!allowSave} onClick={handleSaveBtnClick}>
{t("editor.save")}
</Button>
</button>
</div>
</div>
</div>