mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 04:25:39 +01:00
Added advanced branding
This commit is contained in:
parent
29fa4fe3bd
commit
7bf83d65b9
8 changed files with 50 additions and 12 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import Image from 'next/image';
|
||||
import styles from './Icon.module.css';
|
||||
|
||||
function Icon({ icon, className, size = 'medium', ...props }) {
|
||||
|
|
@ -15,7 +16,7 @@ function Icon({ icon, className, size = 'medium', ...props }) {
|
|||
})}
|
||||
{...props}
|
||||
>
|
||||
{icon}
|
||||
{typeof icon === 'string' ? <Image src={icon} width={20} height={20} /> : icon}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue