File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import {
33 Container ,
4+ Cube ,
45 DeployAnimationContainer ,
6+ DeployText ,
57 GitHubLogo ,
6- Cube ,
78 OpaqueLogo ,
8- DeployText ,
99 Result ,
1010} from './elements' ;
1111
1212interface IGitProgressProps {
13- result : string ;
13+ result : string | null ;
1414 message : string ;
1515}
1616
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import React, { FunctionComponent } from 'react';
55import { Explanation , Heading } from '../elements' ;
66import { Container } from './elements' ;
77
8- const LiveModeEnded : FunctionComponent = ( ) => {
8+ export const LiveSessionEnded : FunctionComponent = ( ) => {
99 const {
1010 state : {
1111 editor : {
@@ -18,9 +18,11 @@ const LiveModeEnded: FunctionComponent = () => {
1818 editor : { forkSandboxClicked } ,
1919 } ,
2020 } = useOvermind ( ) ;
21+
2122 const suggestion = owned
2223 ? 'you can continue working on the current sandbox.'
2324 : 'you can continue working by forking the sandbox or by creating a new sandbox.' ;
25+
2426 return (
2527 < Container >
2628 < Heading > The live session has ended</ Heading >
@@ -58,5 +60,3 @@ const LiveModeEnded: FunctionComponent = () => {
5860 </ Container >
5961 ) ;
6062} ;
61-
62- export default LiveModeEnded ;
Original file line number Diff line number Diff line change 1- import React from 'react' ;
1+ import React , { FunctionComponent } from 'react' ;
22import { useOvermind } from 'app/overmind' ;
33import { GitProgress } from 'app/components/GitProgress' ;
44
5- const PRModal : React . FC = ( ) => {
6- let result = null ;
7-
5+ const PRModal : FunctionComponent = ( ) => {
86 const {
97 state : {
108 git : { isCreatingPr, pr } ,
119 } ,
1210 } = useOvermind ( ) ;
1311
12+ let result = null ;
13+
1414 if ( ! isCreatingPr ) {
1515 result = (
1616 < div >
@@ -33,4 +33,4 @@ const PRModal: React.FC = () => {
3333 ) ;
3434} ;
3535
36- export default PRModal ;
36+ export default PRModal
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { EmptyTrash } from './EmptyTrash';
1717import ExportGitHubModal from './ExportGitHubModal' ;
1818import { FeedbackModal } from './FeedbackModal' ;
1919import { ForkServerModal } from './ForkServerModal' ;
20- import LiveSessionEnded from './LiveSessionEnded' ;
20+ import { LiveSessionEnded } from './LiveSessionEnded' ;
2121import LiveSessionVersionMismatch from './LiveSessionVersionMismatch' ;
2222import NetlifyLogs from './NetlifyLogs' ;
2323import NewSandbox from './NewSandbox' ;
You can’t perform that action at this time.
0 commit comments