Skip to content

Commit

Permalink
debug(KUI-1162): debug bold style
Browse files Browse the repository at this point in the history
  • Loading branch information
karlandindrakryggen committed Jul 31, 2024
1 parent 08dd4c8 commit 353a3fe
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
20 changes: 19 additions & 1 deletion server/components-dist/SyllabusPages.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,25 @@ var SyllabusPages = function SyllabusPages(_ref) {
syllabus: syllabus,
activeSyllabus: activeSyllabus,
language: language
}), /*#__PURE__*/_react["default"].createElement(_SyllabusKeyInformation["default"], {
}), /*#__PURE__*/_react["default"].createElement(_renderer.View, null, /*#__PURE__*/_react["default"].createElement(_renderer.Text, {
style: _SyllabusStyles["default"].h2
}, "Bold debug"), /*#__PURE__*/_react["default"].createElement(_renderer.View, {
style: _SyllabusStyles["default"].bodyText
}, /*#__PURE__*/_react["default"].createElement(_renderer.Text, null, "Text body", /*#__PURE__*/_react["default"].createElement(_renderer.Text, {
style: _SyllabusStyles["default"].em
}, "Text styles.em "), /*#__PURE__*/_react["default"].createElement(_renderer.Text, {
style: {
fontWeight: 'bold'
}
}, "Text fontWeight=bold "))), /*#__PURE__*/_react["default"].createElement(_renderer.View, {
style: _SyllabusStyles["default"].bodyText
}, "Text body", /*#__PURE__*/_react["default"].createElement(_renderer.Text, {
style: _SyllabusStyles["default"].em
}, "Text styles.em"), /*#__PURE__*/_react["default"].createElement(_renderer.Text, {
style: {
fontWeight: 'bold'
}
}, "Text fontWeight=bold"))), /*#__PURE__*/_react["default"].createElement(_SyllabusKeyInformation["default"], {
syllabus: syllabus,
activeSyllabus: activeSyllabus,
language: language
Expand Down
18 changes: 17 additions & 1 deletion server/components/SyllabusPages.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Page, View } from '@react-pdf/renderer'
import { Page, View, Text } from '@react-pdf/renderer'

import SyllabusHead from './SyllabusHead'
import SyllabusKeyInformation from './SyllabusKeyInformation'
Expand All @@ -17,6 +17,22 @@ const SyllabusPages = ({ syllabus, semester, language }) => {
<Page size="A4" style={styles.pages}>
<View style={styles.content}>
<SyllabusHead syllabus={syllabus} activeSyllabus={activeSyllabus} language={language} />
<View>
<Text style={styles.h2}>Bold debug</Text>
<View style={styles.bodyText}>
<Text>
Text body
<Text style={styles.em}>Text styles.em </Text>
<Text style={{fontWeight: 'bold'}}>Text fontWeight=bold </Text>
</Text>
</View>

<View style={styles.bodyText}>
Text body
<Text style={styles.em}>Text styles.em</Text>
<Text style={{fontWeight: 'bold'}}>Text fontWeight=bold</Text>
</View>
</View>
<SyllabusKeyInformation syllabus={syllabus} activeSyllabus={activeSyllabus} language={language} />
<SyllabusBody syllabus={syllabus} activeSyllabus={activeSyllabus} language={language} />
</View>
Expand Down

0 comments on commit 353a3fe

Please sign in to comment.