feat: SSR MathJax and Stripe on routes using them (#37388)

* feat: SSR MathJax and Stripe on routes using them

* refactor: clean up scripts
This commit is contained in:
Oliver Eyton-Williams
2019-10-18 17:45:34 +02:00
committed by mrugesh
parent 145dafe215
commit 058e0b7f8f
4 changed files with 64 additions and 33 deletions

View File

@@ -1,8 +1,6 @@
import meta from './meta';
import mathjax from './mathjax';
import scripts from './scripts';
const metaAndStyleSheets = meta.concat(mathjax, scripts).map((element, i) => ({
const metaAndStyleSheets = meta.map((element, i) => ({
...element,
key: `meta-stylesheet-${i}`,
props: { ...element.props, key: `meta-stylesheet-${i}` }