diff --git a/src/components/display/DictionaryDetails/DetailsSection/OrthographyDisplay.jsx b/src/components/display/DictionaryDetails/DetailsSection/OrthographyDisplay.jsx new file mode 100644 index 0000000..f9da91a --- /dev/null +++ b/src/components/display/DictionaryDetails/DetailsSection/OrthographyDisplay.jsx @@ -0,0 +1,25 @@ +import Inferno from 'inferno'; +import marked from 'marked'; +import sanitizeHtml from 'sanitize-html'; + +export const OrthographyDisplay = ({ + orthographyContent, +}) => { + return ( +
+
+ +
+ Notes: +
+
+
+
+ +
+ +
+ ); +} diff --git a/src/components/display/DictionaryDetails/DetailsSection/index.jsx b/src/components/display/DictionaryDetails/DetailsSection/index.jsx index 79d3268..e61dfd1 100644 --- a/src/components/display/DictionaryDetails/DetailsSection/index.jsx +++ b/src/components/display/DictionaryDetails/DetailsSection/index.jsx @@ -7,6 +7,7 @@ import './styles.scss'; import { GeneralDisplay } from './GeneralDisplay'; import { PhonologyDisplay } from './PhonologyDisplay'; +import { OrthographyDisplay } from './OrthographyDisplay'; const DISPLAY = { NONE: false, @@ -22,6 +23,7 @@ export class DetailsSection extends Component { this.defaultMenuItems = [ 'General', 'Phonology', + 'Orthography', 'Grammar', ]; @@ -118,6 +120,13 @@ export class DetailsSection extends Component { ); break; } + case 'Orthography': { + detailsDisplay = ( + + ); + break; + } case 'Grammar': { detailsDisplay = 'Grammar content!'; break; diff --git a/src/components/management/EditDictionaryModal/EditLinguisticsForm.jsx b/src/components/management/EditDictionaryModal/EditLinguisticsForm.jsx index 22fed86..576ccc7 100644 --- a/src/components/management/EditDictionaryModal/EditLinguisticsForm.jsx +++ b/src/components/management/EditDictionaryModal/EditLinguisticsForm.jsx @@ -12,6 +12,7 @@ export const EditLinguisticsForm = ({ nucleus, coda, exceptions, + orthographyNotes, }) => { return (
@@ -190,6 +191,37 @@ export const EditLinguisticsForm = ({
+ +

+ Orthography +

+ +
+ +
+
+ +

+ Any notes on orthography or how phonemes are written, Markdown enabled +

+
+