Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix video file metadata not passed from docs page template to component
The `Video` (1) component maps the video file metadata received from `props.sources` (array of objects) to the `<source>` HTML tag, but for docs pages the MDX [`DocsPage`][dp] component was only passed down the `publicUrl` metadata field resulting in a array of strings. This caused the `Video` component failing to load the video file(s) for MDX docs pages. To fix the invalid mapping the `DocsPage` component now passes down the whole video file metadata object instead of only the `publicUrl` (string) field. References: (1) https://github.com/arcticicestudio/nord-docs/blob/3b4f7273e00532c2a7506030e604f56492886acf/src/components/atoms/core/mdx-elements/Video.jsx#L93-L94 (2) https://github.com/arcticicestudio/nord-docs/blob/eda9240912dc8005e3297ee82471f9da8da10980/src/components/templates/docs/DocsPage.jsx#L48 Fixes GH-157
- Loading branch information