datastake-daf 0.6.320 → 0.6.321

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.
@@ -12851,8 +12851,8 @@ const useHeader = _ref => {
12851
12851
  })]
12852
12852
  }), addedHeaderFirst ? /*#__PURE__*/jsxRuntime.jsxs("div", {
12853
12853
  className: "flex gap-2",
12854
+ ref: buttonCont,
12854
12855
  children: [addedHeader, hasButtons && /*#__PURE__*/jsxRuntime.jsx("div", {
12855
- ref: buttonCont,
12856
12856
  children: /*#__PURE__*/jsxRuntime.jsx(Buttons, {
12857
12857
  extraButtons: extraButtons,
12858
12858
  actionButtons: actionButtons
@@ -12860,8 +12860,8 @@ const useHeader = _ref => {
12860
12860
  })]
12861
12861
  }) : /*#__PURE__*/jsxRuntime.jsxs("div", {
12862
12862
  className: "flex gap-2",
12863
+ ref: buttonCont,
12863
12864
  children: [hasButtons && /*#__PURE__*/jsxRuntime.jsx("div", {
12864
- ref: buttonCont,
12865
12865
  children: /*#__PURE__*/jsxRuntime.jsx(Buttons, {
12866
12866
  extraButtons: extraButtons,
12867
12867
  actionButtons: actionButtons
@@ -19093,11 +19093,7 @@ function Map$3(_ref) {
19093
19093
  siderTitle = "Mine Description",
19094
19094
  renderTooltip = () => [],
19095
19095
  renderTooltipTags = () => {},
19096
- mapConfig = {
19097
- maxZoom: 18,
19098
- center: [13, -15],
19099
- zoom: 5
19100
- },
19096
+ mapConfig = {},
19101
19097
  emptyDescriptionText = "No description provided",
19102
19098
  tooltipAsText = false,
19103
19099
  primaryLink = false,
@@ -34537,7 +34533,6 @@ const EditForm = _ref => {
34537
34533
  }, id);
34538
34534
  }
34539
34535
  };
34540
- console.log("values", values);
34541
34536
  return /*#__PURE__*/jsxRuntime.jsxs(EditProvider, {
34542
34537
  t: t,
34543
34538
  isReview: isReview,
@@ -50198,7 +50193,6 @@ const Style$g = dt.div`
50198
50193
  display: flex;
50199
50194
  justify-content: space-between;
50200
50195
  align-items: space-between;
50201
- ${"" /* height: ${props => props.height || '300px'}; */}
50202
50196
 
50203
50197
  .weekDay {
50204
50198
  width: 16px;
@@ -50218,7 +50212,6 @@ const Style$g = dt.div`
50218
50212
  overflow: hidden;
50219
50213
  .event {
50220
50214
  width: 100%;
50221
- ${"" /* background: blue; */}
50222
50215
  border-radius: 2px;
50223
50216
  z-index: 1;
50224
50217
  margin-top: 2px;
@@ -50245,6 +50238,30 @@ const Style$g = dt.div`
50245
50238
  }
50246
50239
  }
50247
50240
  `;
50241
+ const StyleWrapper = dt.div`
50242
+ .legend {
50243
+ display: flex;
50244
+ flex-wrap: wrap;
50245
+ gap: 12px;
50246
+ margin-top: 12px;
50247
+ font-size: 12px;
50248
+ color: #333;
50249
+ justify-content: center;
50250
+
50251
+ .legend-item {
50252
+ display: flex;
50253
+ align-items: center;
50254
+ gap: 6px;
50255
+
50256
+ .legend-color {
50257
+ width: 12px;
50258
+ height: 12px;
50259
+ border-radius: 2px;
50260
+ display: inline-block;
50261
+ }
50262
+ }
50263
+ }
50264
+ `;
50248
50265
  dt.div`
50249
50266
  width: 200px;
50250
50267
  display: flex;
@@ -50428,7 +50445,9 @@ function StackChart(_ref) {
50428
50445
  doConstraints = true,
50429
50446
  colors,
50430
50447
  valueField = "value",
50431
- height = 300
50448
+ height = 300,
50449
+ isPdf = false,
50450
+ t = s => s
50432
50451
  } = _ref;
50433
50452
  const ref = React__default["default"].useRef();
50434
50453
  const {
@@ -50556,34 +50575,53 @@ function StackChart(_ref) {
50556
50575
  }));
50557
50576
  }
50558
50577
  }, [hoveredGroup]);
50559
- return /*#__PURE__*/jsxRuntime.jsxs(Style$g, _objectSpread2(_objectSpread2({}, isEmpty ? {
50560
- onMouseEnter: () => {
50561
- setHoveredGroup({
50562
- id: 0
50563
- });
50564
- },
50565
- onMouseLeave: () => {
50566
- setHoveredGroup(null);
50567
- },
50568
- onMouseMove: e => onMouseLeaveHandler(e, {}, 0)
50569
- } : {}), {}, {
50570
- className: formatClassname(["riskProfile", className]),
50571
- ref: ref,
50572
- style: {
50573
- height: "".concat(height, "px")
50574
- },
50575
- children: [typeof renderTooltip === "function" && !isEmpty ? hoveredGroup !== null ? renderTooltip({
50576
- mouseX,
50577
- mouseY,
50578
- item: hoveredGroup
50579
- }) : null : null, /*#__PURE__*/jsxRuntime.jsx("div", {
50580
- className: "timeline",
50578
+ return /*#__PURE__*/jsxRuntime.jsxs(StyleWrapper, {
50579
+ children: [/*#__PURE__*/jsxRuntime.jsxs(Style$g, _objectSpread2(_objectSpread2({}, isEmpty ? {
50580
+ onMouseEnter: () => {
50581
+ setHoveredGroup({
50582
+ id: 0
50583
+ });
50584
+ },
50585
+ onMouseLeave: () => {
50586
+ setHoveredGroup(null);
50587
+ },
50588
+ onMouseMove: e => onMouseLeaveHandler(e, {}, 0)
50589
+ } : {}), {}, {
50590
+ className: formatClassname(["riskProfile", className]),
50591
+ ref: ref,
50581
50592
  style: {
50582
50593
  height: "".concat(height, "px")
50583
50594
  },
50584
- children: content()
50595
+ children: [typeof renderTooltip === "function" && !isEmpty ? hoveredGroup !== null ? renderTooltip({
50596
+ mouseX,
50597
+ mouseY,
50598
+ item: hoveredGroup
50599
+ }) : null : null, /*#__PURE__*/jsxRuntime.jsx("div", {
50600
+ className: "timeline",
50601
+ style: {
50602
+ height: "".concat(height, "px")
50603
+ },
50604
+ children: content()
50605
+ })]
50606
+ })), isPdf && /*#__PURE__*/jsxRuntime.jsx("div", {
50607
+ className: "legend",
50608
+ children: Object.entries(seriesColors).map(_ref4 => {
50609
+ let [series, color] = _ref4;
50610
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
50611
+ className: "legend-item",
50612
+ children: [/*#__PURE__*/jsxRuntime.jsx("span", {
50613
+ className: "legend-color",
50614
+ style: {
50615
+ backgroundColor: color || token.colorPrimary7
50616
+ }
50617
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
50618
+ className: "legend-label",
50619
+ children: t(series)
50620
+ })]
50621
+ }, series);
50622
+ })
50585
50623
  })]
50586
- }));
50624
+ });
50587
50625
  }
50588
50626
 
50589
50627
  const _excluded$3 = ["data", "xFieldKey", "yFieldKey", "seriesField", "renderTooltipContent", "tooltipConfig", "animated", "color", "formattedYAxis", "formattedXAxis", "fillOpacity", "height", "t", "isPdf", "extraLegendConfig", "width"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.320",
3
+ "version": "0.6.321",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -417,6 +417,7 @@ export const WithCustomObject = {
417
417
  social: "#864dd7",
418
418
  environmental: "#f9b836",
419
419
  },
420
+ isPdf: true,
420
421
  },
421
422
  render: (args) => {
422
423
  return <StackChart {...args} />;
@@ -4,7 +4,6 @@ export const Style = styled.div`
4
4
  display: flex;
5
5
  justify-content: space-between;
6
6
  align-items: space-between;
7
- ${"" /* height: ${props => props.height || '300px'}; */}
8
7
 
9
8
  .weekDay {
10
9
  width: 16px;
@@ -24,7 +23,6 @@ export const Style = styled.div`
24
23
  overflow: hidden;
25
24
  .event {
26
25
  width: 100%;
27
- ${"" /* background: blue; */}
28
26
  border-radius: 2px;
29
27
  z-index: 1;
30
28
  margin-top: 2px;
@@ -52,6 +50,31 @@ export const Style = styled.div`
52
50
  }
53
51
  `;
54
52
 
53
+ export const StyleWrapper = styled.div`
54
+ .legend {
55
+ display: flex;
56
+ flex-wrap: wrap;
57
+ gap: 12px;
58
+ margin-top: 12px;
59
+ font-size: 12px;
60
+ color: #333;
61
+ justify-content: center;
62
+
63
+ .legend-item {
64
+ display: flex;
65
+ align-items: center;
66
+ gap: 6px;
67
+
68
+ .legend-color {
69
+ width: 12px;
70
+ height: 12px;
71
+ border-radius: 2px;
72
+ display: inline-block;
73
+ }
74
+ }
75
+ }
76
+ `;
77
+
55
78
  export const EventsTooltip = styled.div`
56
79
  width: 200px;
57
80
  display: flex;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Style } from "./classes.js";
2
+ import { Style, StyleWrapper } from "./classes.js";
3
3
  import { formatClassname } from "../../../../../helpers/ClassesHelper";
4
4
  import { Popover, theme } from "antd";
5
5
  import { renderTooltipJsx as renderDafTooltip } from "../../../../utils/tooltip.js";
@@ -83,6 +83,8 @@ export default function StackChart({
83
83
  colors,
84
84
  valueField = "value",
85
85
  height = 300,
86
+ isPdf = false,
87
+ t = (s) => s,
86
88
  }) {
87
89
  const ref = React.useRef();
88
90
  const { token } = useToken();
@@ -228,6 +230,7 @@ export default function StackChart({
228
230
  );
229
231
 
230
232
  return (
233
+ <StyleWrapper>
231
234
  <Style
232
235
  {...(isEmpty
233
236
  ? {
@@ -255,5 +258,19 @@ export default function StackChart({
255
258
  {content()}
256
259
  </div>
257
260
  </Style>
261
+ {isPdf && (
262
+ <div className="legend">
263
+ {Object.entries(seriesColors).map(([series, color]) => (
264
+ <div key={series} className="legend-item">
265
+ <span
266
+ className="legend-color"
267
+ style={{ backgroundColor: color || token.colorPrimary7 }}
268
+ />
269
+ <span className="legend-label">{t(series)}</span>
270
+ </div>
271
+ ))}
272
+ </div>
273
+ )}
274
+ </StyleWrapper>
258
275
  );
259
276
  }
@@ -103,7 +103,7 @@ function Map({
103
103
  siderTitle = "Mine Description",
104
104
  renderTooltip = () => [],
105
105
  renderTooltipTags = () => {},
106
- mapConfig = { maxZoom: 18, center: [13, -15], zoom: 5 },
106
+ mapConfig = {},
107
107
  emptyDescriptionText = "No description provided",
108
108
  tooltipAsText = false,
109
109
  primaryLink = false,
@@ -134,7 +134,7 @@ function Map({
134
134
  t,
135
135
  app,
136
136
  renderTooltip,
137
- renderTooltipTags,
137
+ renderTooltipTags,
138
138
  onClickLink,
139
139
  link,
140
140
  mapConfig,
@@ -1,75 +1,75 @@
1
1
  /* eslint-disable react/jsx-filename-extension */
2
- import "./_index.scss";
3
- import DynamicForm from "./index.jsx";
4
- import ThemeLayout from "../ThemeLayout";
5
- import { Form } from "antd";
6
- import { useCallback, useState } from "react";
7
- import { storyData } from "./storyConfig.js";
2
+ import './_index.scss';
3
+ import DynamicForm from './index.jsx';
4
+ import ThemeLayout from '../ThemeLayout';
5
+ import { Form } from 'antd';
6
+ import { useCallback, useState } from 'react';
7
+ import { storyData } from './storyConfig.js';
8
8
  // import Modal from '../Modal/index';
9
9
  // import { Drawer } from 'antd';
10
10
 
11
11
  const EForm = () => {
12
- const [MainForm] = Form.useForm();
13
- const [ajaxForms, setAjaxForms] = useState({});
14
- const [ajaxOptions, setAjaxOptions] = useState({});
15
- const [open, setOpen] = useState(true);
12
+ const [MainForm] = Form.useForm();
13
+ const [ajaxForms, setAjaxForms] = useState({});
14
+ const [ajaxOptions, setAjaxOptions] = useState({});
15
+ const [open, setOpen] = useState(true);
16
16
 
17
- const changeAjaxForms = useCallback((key, value) => {
18
- setAjaxForms((prev) => ({ ...prev, [key]: value }));
19
- }, []);
17
+ const changeAjaxForms = useCallback((key, value) => {
18
+ setAjaxForms((prev) => ({ ...prev, [key]: value }));
19
+ }, []);
20
20
 
21
- const changeAjaxOptions = useCallback((key, value) => {
22
- setAjaxOptions((prev) => ({ ...prev, [key]: value }));
23
- }, []);
21
+ const changeAjaxOptions = useCallback((key, value) => {
22
+ setAjaxOptions((prev) => ({ ...prev, [key]: value }));
23
+ }, []);
24
24
 
25
- return (
26
- <div>
27
- <DynamicForm
28
- alertErrorsConfig={{
29
- country: {
30
- message: "Error Test",
31
- onClose: () => alert(1),
32
- },
33
- }}
34
- goTo={() => {}}
35
- ajaxForms={ajaxForms}
36
- changeAjaxForms={changeAjaxForms}
37
- ajaxOptions={ajaxOptions}
38
- user={{ language: "en" }}
39
- changeAjaxOptions={changeAjaxOptions}
40
- app="sbg"
41
- query={null}
42
- MainForm={MainForm}
43
- form={storyData.form}
44
- data={storyData.data}
45
- getAppHeader={storyData.getAppHeader}
46
- getApiBaseUrl={storyData.getApiBaseUrl}
47
- submit={(payload) => {
48
- console.log("submit", payload);
49
- setOpen(false);
50
- }}
51
- staticWidth="720px"
52
- />
53
- </div>
54
- );
55
- };
25
+ return (
26
+ <div
27
+ >
28
+ <DynamicForm
29
+ alertErrorsConfig={{
30
+ country: {
31
+ message: 'Error Test',
32
+ onClose: () => alert(1)
33
+ }
34
+ }}
35
+ goTo={() => { }}
36
+ ajaxForms={ajaxForms}
37
+ changeAjaxForms={changeAjaxForms}
38
+ ajaxOptions={ajaxOptions}
39
+ user={{ language: 'en' }}
40
+ changeAjaxOptions={changeAjaxOptions}
41
+ app="sbg"
42
+ query={null}
43
+ MainForm={MainForm}
44
+ form={storyData.form}
45
+ data={storyData.data}
46
+ getAppHeader={storyData.getAppHeader}
47
+ getApiBaseUrl={storyData.getApiBaseUrl}
48
+ submit={() => {
49
+ setOpen(false)
50
+ }}
51
+ staticWidth="720px"
52
+ />
53
+ </div>
54
+ )
55
+ }
56
56
 
57
57
  export default {
58
- title: "Form/DynamicForm",
59
- component: DynamicForm,
60
- tags: ["autodocs"],
61
- decorators: [
62
- () => (
63
- <div style={{ margin: "3em" }}>
64
- <ThemeLayout>
65
- <EForm />
66
- </ThemeLayout>
67
- </div>
68
- ),
69
- ],
70
- };
58
+ title: 'Form/DynamicForm',
59
+ component: DynamicForm,
60
+ tags: ['autodocs'],
61
+ decorators: [
62
+ () => (
63
+ <div style={{ margin: '3em' }}>
64
+ <ThemeLayout>
65
+ <EForm />
66
+ </ThemeLayout>
67
+ </div>
68
+ ),
69
+ ],
70
+ }
71
71
 
72
72
  export const Primary = {
73
- name: "Edit Form",
74
- args: {},
75
- };
73
+ name: 'Edit Form',
74
+ args: {},
75
+ }
@@ -1,7 +1,7 @@
1
- const getApiBaseUrl = () => "http://192.168.4.252:3022";
1
+ const getApiBaseUrl = () => "http://192.168.4.64:4020";
2
2
 
3
3
  const getAppHeader = () => ({
4
- Application: "nashiriki",
4
+ Application: "sbg",
5
5
  Language: "en",
6
6
  });
7
7
 
@@ -12,95 +12,115 @@ export const storyData = {
12
12
  form: {
13
13
  id: "identification",
14
14
  position: 1,
15
-
16
- areaOfInfluence: {
17
- _id: "68d699bcab72f002b8f04a9e",
18
- id: "d9db4b4d-a7bb-43d7-bdeb-e64bb38d41d1",
19
- dataId: "areaOfInfluence",
15
+ date: {
16
+ _id: "68961d98fb2b209b19efa48d",
17
+ id: "5dc1382e-5229-448f-9712-0835b6ad5baf",
18
+ dataId: "date",
20
19
  section: "identification",
21
- type: "drawTerritory",
20
+ type: "date",
22
21
  meta: {
23
- comment: true,
22
+ group: "identification",
24
23
  notApplicable: false,
25
24
  notAvailable: false,
26
- mandatory: false,
27
- group: "identification",
25
+ comment: false,
26
+ versioning: true,
27
+ mandatory: true,
28
+ disableEdit: {
29
+ create: false,
30
+ edit: true,
31
+ },
28
32
  },
29
-
30
- position: 6,
31
- description:
32
- "The area of influence is the area where actions of this armed group are happening",
33
- scope: ["armedGroups", "location", "conflictArea"],
34
- label: "Perimeter",
35
- createdAt: "2025-09-26T13:48:44.363Z",
36
- updatedAt: "2025-09-26T13:48:44.363Z",
33
+ position: 3,
34
+ scope: ["modalActivity", "activityInfo", "modalFromMineSection"],
35
+ label: "Date",
36
+ createdAt: "2025-08-08T15:54:02.839Z",
37
+ updatedAt: "2025-08-08T15:54:02.839Z",
37
38
  __v: 0,
38
39
  },
39
-
40
- locationId: {
41
- _id: "68d699bcab72f002b8f04ab8",
42
- id: "956303f0-7a0f-40e1-ba9d-21df5079a833",
43
- dataId: "locationId",
40
+ mine: {
41
+ _id: "68961d98fb2b209b19efa493",
42
+ id: "a17546cc-9bf7-4d6f-b5c9-122349c9a62c",
43
+ dataId: "mine",
44
44
  section: "identification",
45
- type: "ajaxSelect",
45
+ type: "dataLink",
46
46
  meta: {
47
+ entity: "Location",
48
+ namespace: "location",
49
+ formScope: "activityMine",
50
+ path: "associatedMine",
51
+ maxRepeat: 1,
47
52
  comment: false,
53
+ createUserVersion: false,
54
+ linkOptions: {
55
+ global: true,
56
+ },
48
57
  notApplicable: false,
49
- notAvailable: true,
50
- application: "nashiriki",
51
- group: "identification",
58
+ notAvailable: false,
59
+ automaticLinking: {
60
+ path: "associatedSubjects",
61
+ nature: "activity",
62
+ },
63
+ ajaxOptionsKey: "id",
52
64
  mandatory: true,
53
- onNewSetValueKey: "name",
54
- store: {
55
- location: {
56
- path: "name",
57
- global: true,
58
- },
65
+ versioning: true,
66
+ disableEdit: {
67
+ create: false,
68
+ edit: true,
69
+ },
70
+ tableKeys: ["datastakeId", "locationId"],
71
+ optionsView: {
72
+ editInputType: "ajaxSelect",
73
+ editInputKey: "locationId",
74
+ onViewInputType: "table",
59
75
  },
60
- call: 'LOCATION::getOptions({\n "country": "country",\n "category": "category",\n "administrativeLevel1": "administrativeLevel1",\n "administrativeLevel2": "administrativeLevel2"\n })::{\n "label": "name",\n "value": "_id",\n "datastakeId": "datastakeId",\n "gps": "gps",\n "_id": "_id",\n "parent": "parent",\n "administrativeLevel1": "administrativeLevel1",\n "administrativeLevel2": "administrativeLevel2",\n "category":"category",\n "users": "users",\n "country": "country"\n }::["datastakeId", "gps", "administrativeLevel1", "administrativeLevel2", "category", "parent", "country", "_id"]',
76
+ application: "sbg",
77
+ noAddNew: true,
78
+ call: 'LOCATION::getOptions({\n "ownAccount": "true",\n "category": "mineSite"\n })::{\n "label": "name",\n "name": "name",\n "value": "_id",\n "datastakeId": "datastakeId",\n "gps": "gps",\n "_id": "_id",\n "id": "id",\n "parent": "parent",\n "administrativeLevel1": "administrativeLevel1",\n "administrativeLevel2": "administrativeLevel2",\n "category":"category",\n "users": "users",\n "country": "country"\n }::["datastakeId", "gps", "administrativeLevel1", "administrativeLevel2", "category","parent", "_id"]',
61
79
  },
62
- position: 5,
63
- dataLink: {
64
- entity: "Location",
65
- createUserVersion: true,
66
- createNew: true,
67
- collection: "nashiriki.global_location",
68
- formNamespace: "location",
69
- keys: [
70
- "name",
71
- "country",
72
- "category",
73
- "administrativeLevel1",
74
- "administrativeLevel2",
75
- ],
80
+ position: 2,
81
+ scope: ["modalActivity", "activityInfo", "modalFromMineSection"],
82
+ label: {
83
+ "scope is modalActivity": "Mine",
84
+ "scope not modalActivity": "Associated Mine",
76
85
  },
77
- rules: [
86
+ createdAt: "2025-08-08T15:54:02.839Z",
87
+ updatedAt: "2025-08-08T15:54:02.839Z",
88
+ __v: 0,
89
+ },
90
+ type: {
91
+ _id: "68961d98fb2b209b19efa495",
92
+ id: "8e421077-c542-46c0-a515-151cf2741f7d",
93
+ dataId: "type",
94
+ section: "identification",
95
+ type: "select",
96
+ meta: {
97
+ group: "identification",
98
+ notApplicable: false,
99
+ notAvailable: false,
100
+ comment: false,
101
+ versioning: true,
102
+ mandatory: true,
103
+ defaultValue: "visit",
104
+ disableEdit: {
105
+ create: false,
106
+ edit: true,
107
+ },
108
+ },
109
+ position: 1,
110
+ scope: ["modalActivity", "activityInfo"],
111
+ label: "Type",
112
+ options: [
78
113
  {
79
- required: true,
80
- message: "errors::field is required",
114
+ label: "Visit",
115
+ value: "visit",
81
116
  },
82
117
  ],
83
- scope: [
84
- "nashirikiOperatorLocation",
85
- "nashirikiWorkerLocation",
86
- "modalNashiriki",
87
- "locationAssociatedVillage",
88
- "locationAssociatedExportTown",
89
- "workerPlaceOfBirth",
90
- "armedGroups",
91
- "locationSupplierTrade",
92
- "modal",
93
- "location",
94
- "conflictArea",
95
- ],
96
- label: "Name of the location",
97
- tableLabel: "Name",
98
- createdAt: "2025-09-26T13:48:44.502Z",
99
- updatedAt: "2025-09-26T13:48:44.502Z",
118
+ createdAt: "2025-08-08T15:54:04.374Z",
119
+ updatedAt: "2025-08-08T15:54:04.374Z",
100
120
  __v: 0,
101
121
  },
102
122
  label: "Identification",
103
- subTitle: "Identification",
123
+ subTitle: "Identificación",
104
124
  },
105
125
  },
106
126
  data: {
@@ -560,8 +560,6 @@ export const EditForm = ({
560
560
  }
561
561
  };
562
562
 
563
- console.log("values", values);
564
-
565
563
  return (
566
564
  <EditProvider
567
565
  t={t}
@@ -243,10 +243,10 @@ export const useHeader = ({
243
243
  </div>
244
244
 
245
245
  {addedHeaderFirst ? (
246
- <div className="flex gap-2">
246
+ <div className="flex gap-2" ref={buttonCont}>
247
247
  {addedHeader}
248
248
  {hasButtons && (
249
- <div ref={buttonCont}>
249
+ <div>
250
250
  <Buttons
251
251
  extraButtons={extraButtons}
252
252
  actionButtons={actionButtons}
@@ -255,9 +255,9 @@ export const useHeader = ({
255
255
  )}
256
256
  </div>
257
257
  ) : (
258
- <div className="flex gap-2">
258
+ <div className="flex gap-2" ref={buttonCont}>
259
259
  {hasButtons && (
260
- <div ref={buttonCont}>
260
+ <div>
261
261
  <Buttons
262
262
  extraButtons={extraButtons}
263
263
  actionButtons={actionButtons}
package/.env DELETED
@@ -1,8 +0,0 @@
1
- REACT_APP_API_KEY=
2
- REACT_APP_AUTH_DOMAIN=
3
- REACT_APP_PROJECT_ID=
4
- REACT_APP_STORAGE_BUCKED=
5
- REACT_APP_SENDER_ID=
6
- REACT_APP_APP_ID=
7
- REACT_APP_MEASUREMENT_ID=
8
- REACT_APP_VAPID_KEY=
@@ -1,13 +0,0 @@
1
- {
2
- "cSpell.words": ["cukura"],
3
- "files.autoSave": "afterDelay",
4
- "editor.wordWrap": "on",
5
- "editor.autoClosingBrackets": "always",
6
- "editor.autoClosingComments": "always",
7
- "editor.autoClosingQuotes": "always",
8
- "editor.defaultFormatter": "esbenp.prettier-vscode",
9
- "editor.formatOnPaste": true,
10
- "editor.formatOnSave": true,
11
- "notebook.defaultFormatter": "esbenp.prettier-vscode",
12
- "javascript.format.semicolons": "insert"
13
- }