Skip to content

Commit

Permalink
[docs] Fix icons + locale
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Mar 22, 2020
1 parent 27471b4 commit 482e5f8
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions docs/pages/components/material-icons.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import Markdown from 'docs/src/pages/components/material-icons/material-icons.md';
import SearchIcons from 'docs/src/pages/components/material-icons/SearchIcons';

const req = (name) => {
const map = {
'material-icons.md': Markdown,
'SearchIcons.js': {
default: SearchIcons,
},
};
return map[name];
};
req.keys = () => ['material-icons.md', 'SearchIcons.js'];
const req = require.context('docs/src/pages/components/material-icons', false, /\.(md|js|tsx)$/);
const reqSource = require.context(
'!raw-loader!../../src/pages/components/material-icons',
false,
/\.(js|tsx)$/,
);
const reqPrefix = 'pages/components/material-icons';

export default function Page() {
return <MarkdownDocs disableToc req={req} reqSource={() => {}} reqPrefix={reqPrefix} />;
return <MarkdownDocs req={req} reqSource={reqSource} reqPrefix={reqPrefix} />;
}

0 comments on commit 482e5f8

Please sign in to comment.