frontend: escape the literal quotes in the annotation blocks
Pedro Lucas Porcellis porcellis@eletrotupi.com · 12 days ago
c1e0d981cc858cd5313dfca8a23c78875f423d9d Browse filesParents
390ce29Changed files
4
Additions
+4
Deletions
-4
frontend/app/care-actions/[id].tsx
1 1
import { useState, useEffect } from "react";
2 2
import {
3 3
StyleSheet,
4 4
View,
5 5
ScrollView,
286 286
{careAction.appointment?.note ? (
287 287
<Section>
288 288
<SectionHeader title="Anotações" variant="subtle" />
289 289
<Card style={{ padding: Spacing.cardGap }}>
290 290
<Text style={styles.annotation}>
291 -
"{careAction.appointment.note.trim()}"
291 +
"{careAction.appointment.note.trim()}"
292 292
</Text>
293 293
</Card>
294 294
</Section>
295 295
) : null}
296 296
538 538
color: Colors.light.textSecondary,
539 539
fontStyle: "italic",
540 540
padding: 4,
541 541
},
542 542
});
frontend/app/entry/[id].tsx
1 1
import { useState, useEffect, use } from "react";
2 2
import {
3 3
StyleSheet,
4 4
View,
5 5
ScrollView,
275 275
{entry.annotation && (
276 276
<Section>
277 277
<SectionHeader title="Anotações" variant="subtle" />
278 278
<Card style={{ padding: Spacing.cardGap }}>
279 279
<Text style={styles.annotation}>
280 -
"{entry.annotation?.trim()}"
280 +
"{entry.annotation?.trim()}"
281 281
</Text>
282 282
</Card>
283 283
</Section>
284 284
)}
285 285
443 443
height: "100%",
444 444
borderRadius: 99,
445 445
},
446 446
447 447
});
frontend/app/sleep/[id].tsx
1 1
import { useState, useEffect, use } from "react";
2 2
import {
3 3
StyleSheet,
4 4
View,
5 5
ScrollView,
123 123
{sleepRecord.annotations && (
124 124
<Section>
125 125
<SectionHeader title="Anotações" variant="subtle" />
126 126
<Card style={{ padding: Spacing.cardGap }}>
127 127
<Text style={styles.annotation}>
128 -
"{sleepRecord.annotations?.trim()}"
128 +
"{sleepRecord.annotations?.trim()}"
129 129
</Text>
130 130
</Card>
131 131
</Section>
132 132
)}
133 133
295 295
},
296 296
deleteInfo: {
297 297
marginTop: 4,
298 298
},
299 299
});
frontend/app/triggers/[id].tsx
1 1
import { useState, useEffect, use } from "react";
2 2
import {
3 3
StyleSheet,
4 4
View,
5 5
ScrollView,
260 260
{trigger.comment && (
261 261
<Section>
262 262
<SectionHeader title="Anotações" variant="subtle" />
263 263
<Card style={{ padding: Spacing.cardGap }}>
264 264
<Text style={styles.annotation}>
265 -
"{trigger.comment?.trim()}"
265 +
"{trigger.comment?.trim()}"
266 266
</Text>
267 267
</Card>
268 268
</Section>
269 269
)}
270 270
438 438
impactFill: {
439 439
height: "100%",
440 440
borderRadius: 99,
441 441
},
442 442
});