kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Porównaj commity
5 Commity
44b36b5460
...
235463a6fc
Autor | SHA1 | Data |
---|---|---|
NEETzsche | 235463a6fc | |
marcin mikołajczak | b8093ace04 | |
marcin mikołajczak | 1b73a1fbc3 | |
Alex Gleason | 87d04e6a0c | |
Alex Gleason | b86da5f426 |
|
@ -13,7 +13,9 @@ const Badge: React.FC<IBadge> = ({ title, slug, color }) => {
|
|||
const fallback = !['patron', 'admin', 'moderator', 'opaque', 'badge:donor'].includes(slug);
|
||||
|
||||
const isDark = useMemo(() => {
|
||||
const hsl = hexToHsl(color!);
|
||||
if (!color) return false;
|
||||
|
||||
const hsl = hexToHsl(color);
|
||||
|
||||
if (hsl && hsl.l > 50) return false;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ interface ICounter {
|
|||
/** A simple counter for notifications, etc. */
|
||||
const Counter: React.FC<ICounter> = ({ count, countMax }) => {
|
||||
return (
|
||||
<span className='flex h-5 min-w-[20px] max-w-[26px] items-center justify-center rounded-full bg-secondary-500 text-xs font-medium text-white ring-2 ring-white dark:ring-gray-800'>
|
||||
<span className='flex h-5 min-w-[20px] max-w-[26px] items-center justify-center rounded-full bg-secondary-500 text-xs font-medium text-white ring-2 ring-white black:ring-black dark:ring-gray-800'>
|
||||
{shortNumberFormat(count, countMax)}
|
||||
</span>
|
||||
);
|
||||
|
|
Ładowanie…
Reference in New Issue