21268e5536
* feat: updates on the button styles * env: updated yarn.lock * fix: added account actions * fix: updated the orbs logic * fix: fixed the blur presets * feat: updated the button logic * fix: wallet modal style adjustments * fix: updated close icon * fix: fixed the close button * fix: fix types * fix: fixed the build * tidy: component cleanup * feat: added new AccountDetails component * refactor: propper usage of tailwind * refactor: imports * feat: added pages for all scenarios * fix: fix the loading component * fix: remove loading from default trade * fix: fixed the build * fix: fixed losing the provider on hotplug * tidy: remove unused code * fix: added error messages * add borrow page structure * env: enhanced debugging by restructuring the ENV object * fix: fixed the build * fix: fixed the wording on missing env variables * feat: added button hover (#112) * feat: added button hover * fix: added bg transition to primary buttons * feat: pages refactored (#111) * feat: pages refactored * fix: added loader for AccountNavigation * fix: fixed the wallet store management * fix: get rid of the walletSlice and refactor * fix: added gap to the borrow page * fix: fixed some dependencies * fix: added initClients back * fix: fixed according to feedback --------- Co-authored-by: bwvdhelm <34470358+bobthebuidlr@users.noreply.github.com>
25 lines
533 B
TypeScript
25 lines
533 B
TypeScript
import classNames from 'classnames'
|
|
|
|
interface Props {
|
|
className?: string
|
|
count?: number
|
|
}
|
|
|
|
export default function Loading(props: Props) {
|
|
return (
|
|
<>
|
|
{Array.from({ length: props.count ?? 1 }, (_, i) => (
|
|
<div
|
|
role='status'
|
|
className={classNames(
|
|
'max-w-full animate-pulse rounded-sm bg-white/40',
|
|
props.className ? props.className : 'h-4 w-full',
|
|
)}
|
|
key={i}
|
|
/>
|
|
))}
|
|
<span className='sr-only'>Loading...</span>
|
|
</>
|
|
)
|
|
}
|