feat: comments nostr tooltip, relays connection status, wrap nav content in page-container, show total comments count on story card, created prefernces service

This commit is contained in:
MTG2000
2022-07-30 11:11:29 +03:00
parent a140208995
commit d43b3215bb
14 changed files with 347 additions and 234 deletions

View File

@@ -1,7 +1,7 @@
import React, { ReactNode } from 'react';
import { UnionToObjectKeys } from 'src/utils/types/utils';
import { Link } from 'react-router-dom'
import { FallingLines, LineWave, TailSpin } from 'react-loader-spinner';
import { TailSpin } from 'react-loader-spinner';
type Props = {
color?: 'primary' | 'red' | 'white' | 'gray' | "black" | 'none',
@@ -107,8 +107,10 @@ const Button = React.forwardRef<any, Props>(({ color = 'white',
disabled={disabled}
{...props}
>
{children}
{isLoading && <div className="text-body5 absolute inset-1 bg-inherit flex flex-col justify-center items-center">
<span className={isLoading ? "opacity-0" : ""}>
{children}
</span>
{isLoading && <div className="text-body5 absolute inset-0 rounded-lg bg-inherit flex flex-col justify-center items-center">
{loadingText ?? <TailSpin
width="24"
color={loadingColor[color]}