mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* operation lifecycle accordion * operation entity * adapt layout to mobile device * basic operations view * pass response data to operation details * update types package * tac operation status and links to tx on ton * feature config, docs and operation badge * add info to tx page * add operations to search * search input on operations page * tests * update tooltips and temporary fix of ts * add InterFallback typeface with → glyph * design and api updates * support new API version * add time format toggle * add shield to entity icon * minor fixes * update screenshots * clean up * fix screenshot
21 lines
433 B
TypeScript
21 lines
433 B
TypeScript
import React from 'react';
|
|
|
|
import StatusTag from 'ui/shared/statusTag/StatusTag';
|
|
|
|
type Props = {
|
|
status?: boolean;
|
|
isLoading?: boolean;
|
|
};
|
|
|
|
const UserOpStatus = ({ status, isLoading }: Props) => {
|
|
if (status === undefined) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<StatusTag loading={ isLoading } type={ status === true ? 'ok' : 'error' } text={ status === true ? 'Success' : 'Failed' }/>
|
|
);
|
|
};
|
|
|
|
export default UserOpStatus;
|