Skip to content

Commit

Permalink
Show spinning instead of loading text
Browse files Browse the repository at this point in the history
  • Loading branch information
fallaciousreasoning committed Nov 2, 2022
1 parent 4792000 commit 1756ce5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import * as React from 'react'
import styled from 'styled-components'
import LoadingComponent from '../../../loading'
import { useBraveNews } from './Context'

const Configure = React.lazy(() => import('./Configure'))
Expand Down Expand Up @@ -41,7 +42,7 @@ export default function BraveNewsModal () {
// Only render the dialog if it should be shown, since
// it is a complex view.
return shouldRender ? <Dialog ref={dialogRef as any}>
<React.Suspense fallback={<span>Loading...</span>}>
<React.Suspense fallback={<LoadingComponent/>}>
<Configure />
</React.Suspense>
</Dialog> : null
Expand Down

0 comments on commit 1756ce5

Please sign in to comment.