docs: added orders overview user guide (#2076)

This commit is contained in:
Shahed Nasser
2022-08-22 18:40:33 +03:00
committed by GitHub
parent 08d2942ddf
commit 7b6148c1dd
4 changed files with 136 additions and 5 deletions

View File

@@ -1,11 +1,11 @@
import React from 'react';
import {useColorMode} from '@docusaurus/theme-common';
export default function UiIcon ({ lightIcon, darkIcon = '' }) {
export default function UiIcon ({ lightIcon, darkIcon = '', alt = '' }) {
const {colorMode} = useColorMode();
const icon = colorMode === 'dark' && darkIcon ? darkIcon : lightIcon;
return (
<img src={icon} className="ui-icon" />
<img src={icon} className="ui-icon" alt={alt} />
)
}