sbwb-ds 1.0.93 → 1.0.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sbwb-ds.js CHANGED
@@ -52199,17 +52199,18 @@ const Ime = ({
52199
52199
  onClickReply: c,
52200
52200
  isReply: u,
52201
52201
  isAuthor: h = !0,
52202
- onSaveEditedComment: f
52202
+ onSaveEditedComment: f,
52203
+ hiddenEditButton: d
52203
52204
  }) => {
52204
- const [d, v] = ke(!1), [p, g] = ke(a), m = _e.EditSm, y = _e.DeleteFILL0Sm, w = _e.ReplySm, x = _e.FiberManualRecordFill1Sm, _ = () => {
52205
- v(!0), s && s();
52206
- }, b = () => {
52207
- v(!1), f(e, p);
52205
+ const [v, p] = ke(!1), [g, m] = ke(a), y = _e.EditSm, w = _e.DeleteFILL0Sm, x = _e.ReplySm, _ = _e.FiberManualRecordFill1Sm, b = () => {
52206
+ p(!0), s && s();
52208
52207
  }, M = () => {
52209
- g(a), v(!1);
52208
+ p(!1), f(e, g);
52209
+ }, L = () => {
52210
+ m(a), p(!1);
52210
52211
  };
52211
52212
  return /* @__PURE__ */ X(lhe, { isReply: u, children: [
52212
- i ? /* @__PURE__ */ I(Tw, { children: /* @__PURE__ */ I(phe, { src: i }) }) : /* @__PURE__ */ I(Tw, { children: /* @__PURE__ */ I(x, {}) }),
52213
+ i ? /* @__PURE__ */ I(Tw, { children: /* @__PURE__ */ I(phe, { src: i }) }) : /* @__PURE__ */ I(Tw, { children: /* @__PURE__ */ I(_, {}) }),
52213
52214
  /* @__PURE__ */ X(
52214
52215
  "div",
52215
52216
  {
@@ -52222,23 +52223,23 @@ const Ime = ({
52222
52223
  /* @__PURE__ */ I(fhe, { children: r }),
52223
52224
  /* @__PURE__ */ I(dhe, { children: t })
52224
52225
  ] }),
52225
- /* @__PURE__ */ X(mhe, { isEditing: d, children: [
52226
- h ? /* @__PURE__ */ I(m, { onClick: _ }) : null,
52227
- /* @__PURE__ */ I(w, { onClick: () => c(e) }),
52228
- h ? /* @__PURE__ */ I(y, { onClick: l }) : null
52226
+ /* @__PURE__ */ X(mhe, { isEditing: v, children: [
52227
+ d ? null : h && /* @__PURE__ */ I(y, { onClick: b }),
52228
+ /* @__PURE__ */ I(x, { onClick: () => c(e) }),
52229
+ h ? /* @__PURE__ */ I(w, { onClick: l }) : null
52229
52230
  ] })
52230
52231
  ] }),
52231
52232
  /* @__PURE__ */ X(uhe, { children: [
52232
52233
  /* @__PURE__ */ I(che, { children: o }),
52233
52234
  /* @__PURE__ */ I(Che, { children: n })
52234
52235
  ] }),
52235
- d ? /* @__PURE__ */ X(yhe, { children: [
52236
+ v ? /* @__PURE__ */ X(yhe, { children: [
52236
52237
  /* @__PURE__ */ I(
52237
52238
  GV,
52238
52239
  {
52239
52240
  id: "textarea-" + e,
52240
- value: p,
52241
- onChange: (L) => g(L.target.value),
52241
+ value: g,
52242
+ onChange: (E) => m(E.target.value),
52242
52243
  width: "230px",
52243
52244
  height: "100%",
52244
52245
  minHeight: "98px",
@@ -52246,10 +52247,10 @@ const Ime = ({
52246
52247
  }
52247
52248
  ),
52248
52249
  /* @__PURE__ */ X(whe, { children: [
52249
- /* @__PURE__ */ I(Ta, { variant: "delete", onClick: M }),
52250
- /* @__PURE__ */ I(Ta, { variant: "check_circle", onClick: b })
52250
+ /* @__PURE__ */ I(Ta, { variant: "delete", onClick: L }),
52251
+ /* @__PURE__ */ I(Ta, { variant: "check_circle", onClick: M })
52251
52252
  ] })
52252
- ] }) : /* @__PURE__ */ I(ghe, { children: p })
52253
+ ] }) : /* @__PURE__ */ I(ghe, { children: g })
52253
52254
  ]
52254
52255
  }
52255
52256
  )
@@ -52368,22 +52369,22 @@ const Dhe = N.div`
52368
52369
  onClose: t,
52369
52370
  onClickOverlay: n,
52370
52371
  sendMessage: a,
52371
- sendReply: i,
52372
- title: o,
52373
- overlay: s,
52374
- width: l = "340px",
52375
- confirmButtonProps: c,
52376
- comments: u,
52377
- inputProps: h,
52378
- onReplyToComment: f,
52379
- onDeleteComment: d,
52380
- onSaveEditedComment: v
52372
+ title: i,
52373
+ overlay: o,
52374
+ width: s = "340px",
52375
+ confirmButtonProps: l,
52376
+ comments: c,
52377
+ inputProps: u,
52378
+ onReplyToComment: h,
52379
+ onDeleteComment: f,
52380
+ onSaveEditedComment: d,
52381
+ hiddenEditButton: v = !1
52381
52382
  }) => {
52382
52383
  const [p, g] = ke({}), [m, y] = ke(null), w = Qe(null);
52383
52384
  if (!r)
52384
52385
  return null;
52385
52386
  const x = (M) => {
52386
- f(M), y(M), w.current.focus();
52387
+ h(M), y(M), w.current.focus();
52387
52388
  }, _ = (M) => {
52388
52389
  g((L) => ({
52389
52390
  ...L,
@@ -52393,48 +52394,51 @@ const Dhe = N.div`
52393
52394
  a && (a(m), y(null));
52394
52395
  };
52395
52396
  return /* @__PURE__ */ X(qt, { children: [
52396
- s && /* @__PURE__ */ I(Dhe, { onClick: n }),
52397
- /* @__PURE__ */ X(bhe, { id: e, width: l, children: [
52397
+ o && /* @__PURE__ */ I(Dhe, { onClick: n }),
52398
+ /* @__PURE__ */ X(bhe, { id: e, width: s, children: [
52398
52399
  /* @__PURE__ */ X(xhe, { children: [
52399
- /* @__PURE__ */ I(Vhe, { children: /* @__PURE__ */ I(She, { children: o }) }),
52400
+ /* @__PURE__ */ I(Vhe, { children: /* @__PURE__ */ I(She, { children: i }) }),
52400
52401
  /* @__PURE__ */ I(khe, { onClick: t, children: /* @__PURE__ */ I(xn, { iconName: "CloseMd", width: "24px" }) })
52401
52402
  ] }),
52402
- /* @__PURE__ */ I(_he, { children: /* @__PURE__ */ I(Mhe, { children: u == null ? void 0 : u.map((M, L) => {
52403
- var E, V, k;
52403
+ /* @__PURE__ */ I(_he, { children: /* @__PURE__ */ I(Mhe, { children: c == null ? void 0 : c.map((M) => {
52404
+ var L, E, V;
52404
52405
  return /* @__PURE__ */ X(qt, { children: [
52405
52406
  /* @__PURE__ */ I(
52406
52407
  j8,
52407
52408
  {
52408
52409
  ...M,
52409
52410
  onClickReply: () => x(M.id),
52410
- onClickDelete: () => d(M.id),
52411
- onSaveEditedComment: () => v(M.id, M.text)
52411
+ onClickDelete: () => f(M.id),
52412
+ onSaveEditedComment: () => d(M.id, M.text),
52413
+ hiddenEditButton: v
52412
52414
  },
52413
52415
  M.id
52414
52416
  ),
52415
- (E = M.replies) == null ? void 0 : E.slice(0, 1).map((H) => /* @__PURE__ */ I(
52417
+ (L = M.replies) == null ? void 0 : L.slice(0, 1).map((k) => /* @__PURE__ */ I(
52416
52418
  j8,
52417
52419
  {
52418
- ...H,
52420
+ ...k,
52419
52421
  isReply: !0,
52420
52422
  onClickReply: () => x(M.id),
52421
- onClickDelete: () => d(H.id),
52422
- onSaveEditedComment: () => v(H.id, H.text)
52423
+ onClickDelete: () => f(k.id),
52424
+ onSaveEditedComment: () => d(k.id, k.text),
52425
+ hiddenEditButton: v
52423
52426
  },
52424
- H.id
52427
+ k.id
52425
52428
  )),
52426
- p[M.id] && ((V = M.replies) == null ? void 0 : V.length) > 1 && M.replies.slice(1).map((H) => /* @__PURE__ */ I(
52429
+ p[M.id] && ((E = M.replies) == null ? void 0 : E.length) > 1 && M.replies.slice(1).map((k) => /* @__PURE__ */ I(
52427
52430
  j8,
52428
52431
  {
52429
- ...H,
52432
+ ...k,
52430
52433
  isReply: !0,
52431
52434
  onClickReply: () => x(M.id),
52432
- onClickDelete: () => d(H.id),
52433
- onSaveEditedComment: () => v(H.id, H.text)
52435
+ onClickDelete: () => f(k.id),
52436
+ onSaveEditedComment: () => d(k.id, k.text),
52437
+ hiddenEditButton: v
52434
52438
  },
52435
- H.id
52439
+ k.id
52436
52440
  )),
52437
- ((k = M.replies) == null ? void 0 : k.length) > 1 && /* @__PURE__ */ I(
52441
+ ((V = M.replies) == null ? void 0 : V.length) > 1 && /* @__PURE__ */ I(
52438
52442
  Hhe,
52439
52443
  {
52440
52444
  onClick: () => _(M.id),
@@ -52452,7 +52456,7 @@ const Dhe = N.div`
52452
52456
  /* @__PURE__ */ I(
52453
52457
  Af,
52454
52458
  {
52455
- ...h,
52459
+ ...u,
52456
52460
  ref: w,
52457
52461
  id: "HistorySheetId",
52458
52462
  size: "Small",
@@ -52463,7 +52467,7 @@ const Dhe = N.div`
52463
52467
  /* @__PURE__ */ I(
52464
52468
  l1,
52465
52469
  {
52466
- ...c,
52470
+ ...l,
52467
52471
  name: "Enviar",
52468
52472
  size: "Small",
52469
52473
  width: "59px",
@@ -2783,7 +2783,7 @@ echarts.use([`+H+"]);":"Unknown series "+k))}return}if(h==="tooltip"){if(w){proc
2783
2783
  display: flex;
2784
2784
  flex-direction: column;
2785
2785
  gap: 4px;
2786
- `,of=({id:e,name:r,keyName:t,date:n,text:a,avatarImg:i,title:o,onClickEdit:s,onClickDelete:l,onClickReply:c,isReply:u,isAuthor:h=!0,onSaveEditedComment:f})=>{const[d,v]=N.useState(!1),[p,g]=N.useState(a),m=be.EditSm,y=be.DeleteFILL0Sm,w=be.ReplySm,x=be.FiberManualRecordFill1Sm,_=()=>{v(!0),s&&s()},b=()=>{v(!1),f(e,p)},M=()=>{g(a),v(!1)};return X(Aie,{isReply:u,children:[i?I(rV,{children:I(Oie,{src:i})}):I(rV,{children:I(x,{})}),X("div",{style:{width:"100%"},children:[X(Fie,{children:[X(Pie,{children:[I(Nie,{children:r}),I(Bie,{children:t})]}),X(zie,{isEditing:d,children:[h?I(m,{onClick:_}):null,I(w,{onClick:()=>c(e)}),h?I(y,{onClick:l}):null]})]}),X(Iie,{children:[I($ie,{children:o}),I(Rie,{children:n})]}),d?X(Wie,{children:[I(Gh,{id:"textarea-"+e,value:p,onChange:L=>g(L.target.value),width:"230px",height:"100%",minHeight:"98px",size:"Small"}),X(Gie,{children:[I(Sn,{variant:"delete",onClick:M}),I(Sn,{variant:"check_circle",onClick:b})]})]}):I(Zie,{children:p})]})]})},Uie=T.h2`
2786
+ `,of=({id:e,name:r,keyName:t,date:n,text:a,avatarImg:i,title:o,onClickEdit:s,onClickDelete:l,onClickReply:c,isReply:u,isAuthor:h=!0,onSaveEditedComment:f,hiddenEditButton:d})=>{const[v,p]=N.useState(!1),[g,m]=N.useState(a),y=be.EditSm,w=be.DeleteFILL0Sm,x=be.ReplySm,_=be.FiberManualRecordFill1Sm,b=()=>{p(!0),s&&s()},M=()=>{p(!1),f(e,g)},L=()=>{m(a),p(!1)};return X(Aie,{isReply:u,children:[i?I(rV,{children:I(Oie,{src:i})}):I(rV,{children:I(_,{})}),X("div",{style:{width:"100%"},children:[X(Fie,{children:[X(Pie,{children:[I(Nie,{children:r}),I(Bie,{children:t})]}),X(zie,{isEditing:v,children:[d?null:h&&I(y,{onClick:b}),I(x,{onClick:()=>c(e)}),h?I(w,{onClick:l}):null]})]}),X(Iie,{children:[I($ie,{children:o}),I(Rie,{children:n})]}),v?X(Wie,{children:[I(Gh,{id:"textarea-"+e,value:g,onChange:E=>m(E.target.value),width:"230px",height:"100%",minHeight:"98px",size:"Small"}),X(Gie,{children:[I(Sn,{variant:"delete",onClick:L}),I(Sn,{variant:"check_circle",onClick:M})]})]}):I(Zie,{children:g})]})]})},Uie=T.h2`
2787
2787
  color: ${S.colors.neutralColors.colorNeutralDark};
2788
2788
  font-size: 18px;
2789
2789
  font-style: normal;
@@ -2889,7 +2889,7 @@ echarts.use([`+H+"]);":"Unknown series "+k))}return}if(h==="tooltip"){if(w){proc
2889
2889
  fill: ${S.colors.neutralColors.colorNeutralCloudy};
2890
2890
  }
2891
2891
  }
2892
- `,a2e=({id:e,open:r,onClose:t,onClickOverlay:n,sendMessage:a,sendReply:i,title:o,overlay:s,width:l="340px",confirmButtonProps:c,comments:u,inputProps:h,onReplyToComment:f,onDeleteComment:d,onSaveEditedComment:v})=>{const[p,g]=N.useState({}),[m,y]=N.useState(null),w=N.useRef(null);if(!r)return null;const x=M=>{f(M),y(M),w.current.focus()},_=M=>{g(L=>({...L,[M]:!L[M]}))},b=()=>{a&&(a(m),y(null))};return X(Wt,{children:[s&&I(t2e,{onClick:n}),X(Xie,{id:e,width:l,children:[X(Yie,{children:[I(Jie,{children:I(Uie,{children:o})}),I(e2e,{onClick:t,children:I(Fr,{iconName:"CloseMd",width:"24px"})})]}),I(qie,{children:I(jie,{children:u==null?void 0:u.map((M,L)=>{var E,V,k;return X(Wt,{children:[I(of,{...M,onClickReply:()=>x(M.id),onClickDelete:()=>d(M.id),onSaveEditedComment:()=>v(M.id,M.text)},M.id),(E=M.replies)==null?void 0:E.slice(0,1).map(H=>I(of,{...H,isReply:!0,onClickReply:()=>x(M.id),onClickDelete:()=>d(H.id),onSaveEditedComment:()=>v(H.id,H.text)},H.id)),p[M.id]&&((V=M.replies)==null?void 0:V.length)>1&&M.replies.slice(1).map(H=>I(of,{...H,isReply:!0,onClickReply:()=>x(M.id),onClickDelete:()=>d(H.id),onSaveEditedComment:()=>v(H.id,H.text)},H.id)),((k=M.replies)==null?void 0:k.length)>1&&I(r2e,{onClick:()=>_(M.id),children:I(n2e,{children:p[M.id]?"Menos comentários":X(Wt,{children:[I(Fr,{iconName:"MoreHorizSm",width:"24px"}),"Mais comentários"]})})})]})})})}),X(Kie,{children:[I(af,{width:"100%"}),X(Qie,{children:[I(Ml,{...h,ref:w,id:"HistorySheetId",size:"Small",width:"225px",placeholder:"Digite aqui"}),I(jt,{...c,name:"Enviar",size:"Small",width:"59px",onClick:b})]})]})]})]})},i2e=T.main`
2892
+ `,a2e=({id:e,open:r,onClose:t,onClickOverlay:n,sendMessage:a,title:i,overlay:o,width:s="340px",confirmButtonProps:l,comments:c,inputProps:u,onReplyToComment:h,onDeleteComment:f,onSaveEditedComment:d,hiddenEditButton:v=!1})=>{const[p,g]=N.useState({}),[m,y]=N.useState(null),w=N.useRef(null);if(!r)return null;const x=M=>{h(M),y(M),w.current.focus()},_=M=>{g(L=>({...L,[M]:!L[M]}))},b=()=>{a&&(a(m),y(null))};return X(Wt,{children:[o&&I(t2e,{onClick:n}),X(Xie,{id:e,width:s,children:[X(Yie,{children:[I(Jie,{children:I(Uie,{children:i})}),I(e2e,{onClick:t,children:I(Fr,{iconName:"CloseMd",width:"24px"})})]}),I(qie,{children:I(jie,{children:c==null?void 0:c.map(M=>{var L,E,V;return X(Wt,{children:[I(of,{...M,onClickReply:()=>x(M.id),onClickDelete:()=>f(M.id),onSaveEditedComment:()=>d(M.id,M.text),hiddenEditButton:v},M.id),(L=M.replies)==null?void 0:L.slice(0,1).map(k=>I(of,{...k,isReply:!0,onClickReply:()=>x(M.id),onClickDelete:()=>f(k.id),onSaveEditedComment:()=>d(k.id,k.text),hiddenEditButton:v},k.id)),p[M.id]&&((E=M.replies)==null?void 0:E.length)>1&&M.replies.slice(1).map(k=>I(of,{...k,isReply:!0,onClickReply:()=>x(M.id),onClickDelete:()=>f(k.id),onSaveEditedComment:()=>d(k.id,k.text),hiddenEditButton:v},k.id)),((V=M.replies)==null?void 0:V.length)>1&&I(r2e,{onClick:()=>_(M.id),children:I(n2e,{children:p[M.id]?"Menos comentários":X(Wt,{children:[I(Fr,{iconName:"MoreHorizSm",width:"24px"}),"Mais comentários"]})})})]})})})}),X(Kie,{children:[I(af,{width:"100%"}),X(Qie,{children:[I(Ml,{...u,ref:w,id:"HistorySheetId",size:"Small",width:"225px",placeholder:"Digite aqui"}),I(jt,{...l,name:"Enviar",size:"Small",width:"59px",onClick:b})]})]})]})]})},i2e=T.main`
2893
2893
  position: relative;
2894
2894
  min-width: 488px;
2895
2895
  height: ${({showDetails:e})=>e?"628px":"500px"};
@@ -13,6 +13,7 @@ export interface CommentProps {
13
13
  isAuthor?: boolean;
14
14
  replies?: CommentProps[];
15
15
  onSaveEditedComment?: (commentId: string, newText: string) => void;
16
+ hiddenEditButton: boolean;
16
17
  }
17
- declare const HistoryComment: ({ id, name, keyName, date, text, avatarImg, title, onClickEdit, onClickDelete, onClickReply, isReply, isAuthor, onSaveEditedComment, }: CommentProps) => import("react/jsx-runtime").JSX.Element;
18
+ declare const HistoryComment: ({ id, name, keyName, date, text, avatarImg, title, onClickEdit, onClickDelete, onClickReply, isReply, isAuthor, onSaveEditedComment, hiddenEditButton, }: CommentProps) => import("react/jsx-runtime").JSX.Element;
18
19
  export default HistoryComment;
@@ -19,6 +19,7 @@ interface Props {
19
19
  onReplyToComment?: (commentId: string) => void;
20
20
  onDeleteComment?: (commentId: string) => void;
21
21
  onSaveEditedComment?: (commentId: string, newText: string) => void;
22
+ hiddenEditButton?: boolean;
22
23
  }
23
- declare const SheetHistory: ({ id, open, onClose, onClickOverlay, sendMessage, sendReply, title, overlay, width, confirmButtonProps, comments, inputProps, onReplyToComment, onDeleteComment, onSaveEditedComment, }: Props) => import("react/jsx-runtime").JSX.Element;
24
+ declare const SheetHistory: ({ id, open, onClose, onClickOverlay, sendMessage, title, overlay, width, confirmButtonProps, comments, inputProps, onReplyToComment, onDeleteComment, onSaveEditedComment, hiddenEditButton, }: Props) => import("react/jsx-runtime").JSX.Element;
24
25
  export default SheetHistory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbwb-ds",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "type": "module",
5
5
  "description": "Sistema de design para padronização dos processos visuais do portal SUBWEB",
6
6
  "main": "dist/sbwb-ds.js",
@@ -21,6 +21,7 @@ export default {
21
21
  onClickOverlay: { action: 'onClickOverlay' },
22
22
  cancelButtonProps: { control: 'object' },
23
23
  confirmButtonProps: { control: 'object' },
24
+ hiddenEditButton: { control: 'boolean' },
24
25
  },
25
26
  };
26
27
 
@@ -19,6 +19,7 @@ export interface CommentProps {
19
19
  isAuthor?: boolean;
20
20
  replies?: CommentProps[];
21
21
  onSaveEditedComment?: (commentId: string, newText: string) => void;
22
+ hiddenEditButton: boolean;
22
23
  }
23
24
 
24
25
  const HistoryComment = ({
@@ -35,14 +36,15 @@ const HistoryComment = ({
35
36
  isReply,
36
37
  isAuthor = true,
37
38
  onSaveEditedComment,
39
+ hiddenEditButton,
38
40
  }: CommentProps) => {
39
41
  const [isEditing, setIsEditing] = useState(false);
40
42
  const [editableText, setEditableText] = useState(text);
41
43
 
42
- const EditIcon = Icons[`EditSm`];
43
- const DeleteIcon = Icons[`DeleteFILL0Sm`];
44
- const ReplyIcon = Icons[`ReplySm`];
45
- const Avatar = Icons[`FiberManualRecordFill1Sm`];
44
+ const EditIcon = Icons.EditSm;
45
+ const DeleteIcon = Icons.DeleteFILL0Sm;
46
+ const ReplyIcon = Icons.ReplySm;
47
+ const Avatar = Icons.FiberManualRecordFill1Sm;
46
48
 
47
49
  const handleEditClick = () => {
48
50
  setIsEditing(true);
@@ -84,7 +86,9 @@ const HistoryComment = ({
84
86
  </C.NameContainer>
85
87
 
86
88
  <C.IconsContainer isEditing={isEditing}>
87
- {isAuthor ? <EditIcon onClick={handleEditClick} /> : null}
89
+ {!hiddenEditButton
90
+ ? isAuthor && <EditIcon onClick={handleEditClick} />
91
+ : null}
88
92
  <ReplyIcon onClick={() => onClickReply(id)} />
89
93
  {isAuthor ? <DeleteIcon onClick={onClickDelete} /> : null}
90
94
  </C.IconsContainer>
@@ -24,6 +24,7 @@ interface Props {
24
24
  onReplyToComment?: (commentId: string) => void;
25
25
  onDeleteComment?: (commentId: string) => void;
26
26
  onSaveEditedComment?: (commentId: string, newText: string) => void;
27
+ hiddenEditButton?: boolean;
27
28
  }
28
29
 
29
30
  const SheetHistory = ({
@@ -32,7 +33,6 @@ const SheetHistory = ({
32
33
  onClose,
33
34
  onClickOverlay,
34
35
  sendMessage,
35
- sendReply,
36
36
  title,
37
37
  overlay,
38
38
  width = '340px',
@@ -42,6 +42,7 @@ const SheetHistory = ({
42
42
  onReplyToComment,
43
43
  onDeleteComment,
44
44
  onSaveEditedComment,
45
+ hiddenEditButton = false,
45
46
  }: Props) => {
46
47
  const [expandedComments, setExpandedComments] = useState({});
47
48
  const [replyToCommentId, setReplyToCommentId] = useState(null);
@@ -86,7 +87,7 @@ const SheetHistory = ({
86
87
 
87
88
  <C.ScrollContainer>
88
89
  <C.Content>
89
- {comments?.map((comment, index) => (
90
+ {comments?.map((comment) => (
90
91
  <>
91
92
  <Comment
92
93
  key={comment.id}
@@ -96,6 +97,7 @@ const SheetHistory = ({
96
97
  onSaveEditedComment={() =>
97
98
  onSaveEditedComment(comment.id, comment.text)
98
99
  }
100
+ hiddenEditButton={hiddenEditButton}
99
101
  />
100
102
  {comment.replies?.slice(0, 1).map((reply) => (
101
103
  <Comment
@@ -107,6 +109,7 @@ const SheetHistory = ({
107
109
  onSaveEditedComment={() =>
108
110
  onSaveEditedComment(reply.id, reply.text)
109
111
  }
112
+ hiddenEditButton={hiddenEditButton}
110
113
  />
111
114
  ))}
112
115
  {expandedComments[comment.id] &&
@@ -123,6 +126,7 @@ const SheetHistory = ({
123
126
  onSaveEditedComment={() =>
124
127
  onSaveEditedComment(reply.id, reply.text)
125
128
  }
129
+ hiddenEditButton={hiddenEditButton}
126
130
  />
127
131
  ))}
128
132
  {comment.replies?.length > 1 && (