File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1- import { Text } from "ink" ;
1+ import { Box , Text } from "ink" ;
22import React , { useMemo } from "react" ;
33
44import { useServices } from "../hooks/useService.js" ;
99} from "../services/types.js" ;
1010
1111import { useTerminalSize } from "./hooks/useTerminalSize.js" ;
12+ import { LoadingAnimation } from "./LoadingAnimation.js" ;
1213
1314interface UpdateNotificationProps {
1415 isRemoteMode ?: boolean ;
@@ -48,6 +49,15 @@ const UpdateNotification: React.FC<UpdateNotificationProps> = ({
4849 return < Text color = "cyan" > ◉ Remote Mode</ Text > ;
4950 }
5051
52+ if ( services . update ?. status === UpdateStatus . UPDATING ) {
53+ return (
54+ < Box columnGap = { 1 } >
55+ < LoadingAnimation />
56+ < Text color = { color } > { `${ text } ` } </ Text >
57+ </ Box >
58+ ) ;
59+ }
60+
5161 return < Text color = { color } > { `◉ ${ text } ` } </ Text > ;
5262} ;
5363
You can’t perform that action at this time.
0 commit comments