File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- const SwayLoading = ( { isHidden, className } : { isHidden ?: boolean ; className ?: string } ) => (
2- < img
3- src = "/images/loading.svg"
4- alt = "Loading..."
5- className = { className }
6- style = { { width : "100%" , maxWidth : "100px" , visibility : isHidden ? "hidden" : "visible" } }
7- />
1+ const SwayLoading = ( { isHidden = true , className } : { isHidden ?: boolean ; className ?: string } ) => (
2+ < div
3+ className = { `container text-center ${ className || "" } ` }
4+ style = { {
5+ visibility : isHidden ? "hidden" : "visible" ,
6+ } }
7+ >
8+ < img src = "/images/loading.svg" alt = "Loading..." style = { { maxWidth : 100 } } />
9+ </ div >
810) ;
911
1012export default SwayLoading ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const BillSummaryModal: React.FC<IProps> = ({
3434 ( isTruncated : boolean ) => {
3535 if ( ! summary ) return null ;
3636
37- // TODO: Arbitrarily picked 200 , should probably cut-off also at first bullet point or after first paragraph.
37+ // TODO: Arbitrarily picked 300 , should probably cut-off also at first bullet point or after first paragraph.
3838 // truncate to first index of a markdown link or 300
3939 const firstLinkOpenIndex = summary . indexOf ( "[" ) ;
4040 const truncated = summary
You can’t perform that action at this time.
0 commit comments