mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-03-25 02:32:52 -05:00
* feat: add download tarball indicator * Update ActionBar.test.tsx * fix: dark mode and readme css * Create long-jars-collect.md * Update long-jars-collect.md * feat: improve install commands * snapshots * feat: hide deprecated versions option * add testss * feat: display deprecated versions * add i18n * fix e2e * Update Readme.spec.tsx.snap
19 lines
494 B
TypeScript
19 lines
494 B
TypeScript
import 'highlight.js/styles/default.css';
|
|
import React from 'react';
|
|
|
|
import { useCustomTheme } from '../../';
|
|
import ReadmeDark from './ReadmeDark';
|
|
import ReadmeLight from './ReadmeLight';
|
|
import { Props } from './types';
|
|
|
|
const Readme: React.FC<Props> = ({ description }) => {
|
|
// @ts-ignore
|
|
const { isDarkMode } = useCustomTheme();
|
|
|
|
return isDarkMode ? (
|
|
<ReadmeDark description={description} />
|
|
) : (
|
|
<ReadmeLight description={description} />
|
|
);
|
|
};
|
|
export default Readme;
|