fix(renderer): merge similar renderer types

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-03-16 08:20:16 +01:00
parent 93f296a175
commit 9d49401b4d
8 changed files with 12 additions and 20 deletions

View file

@ -20,7 +20,7 @@ exports[`motd modal renders a modal if a motd was fetched and can dismiss it 1`]
data-testid="motd-renderer"
>
This is a mock implementation of a iframe renderer. Props:
{"frameClasses":"w-100","rendererType":"motd","markdownContentLines":["very important mock text!"],"adaptFrameHeightToContent":true}
{"frameClasses":"w-100","rendererType":"simple","markdownContentLines":["very important mock text!"],"adaptFrameHeightToContent":true}
</span>
</div>
<div

View file

@ -57,7 +57,7 @@ export const MotdModal: React.FC = () => {
<EditorToRendererCommunicatorContextProvider>
<RenderIframe
frameClasses={'w-100'}
rendererType={RendererType.MOTD}
rendererType={RendererType.SIMPLE}
markdownContentLines={lines as string[]}
adaptFrameHeightToContent={true}
/>