-
Notifications
You must be signed in to change notification settings - Fork 873
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor modals to use store instead of state in Sync
fix brave/brave-browser#2677 fix brave/brave-browser#2564 address brave/brave-browser#2567
- Loading branch information
1 parent
7d8718e
commit 76c3292
Showing
19 changed files
with
365 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
components/brave_sync/ui/components/errorDialogs/initFailed.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import * as React from 'react' | ||
|
||
// Components | ||
import { AlertBox } from 'brave-ui' | ||
|
||
// Feature-specific components | ||
import { Title, SubTitle } from 'brave-ui/features/sync' | ||
|
||
// Utils | ||
import { getLocale } from '../../../../common/locale' | ||
|
||
interface Props { | ||
onUserNoticedError: () => void | ||
} | ||
|
||
export default class InitFailed extends React.PureComponent<Props, {}> { | ||
render () { | ||
const { onUserNoticedError } = this.props | ||
return ( | ||
<AlertBox okString={getLocale('ok')} onClickOk={onUserNoticedError}> | ||
<Title>{getLocale('errorSyncInitFailedTitle')}</Title> | ||
<SubTitle>{getLocale('errorSyncInitFailedDescription')}</SubTitle> | ||
</AlertBox> | ||
) | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
components/brave_sync/ui/components/errorDialogs/missingWords.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import * as React from 'react' | ||
|
||
// Components | ||
import { AlertBox } from 'brave-ui' | ||
|
||
// Feature-specific components | ||
import { Title } from 'brave-ui/features/sync' | ||
|
||
// Utils | ||
import { getLocale } from '../../../../common/locale' | ||
|
||
interface Props { | ||
onUserNoticedError: () => void | ||
} | ||
|
||
export default class MissingWords extends React.PureComponent<Props, {}> { | ||
render () { | ||
const { onUserNoticedError } = this.props | ||
return ( | ||
<AlertBox okString={getLocale('ok')} onClickOk={onUserNoticedError}> | ||
<Title>{getLocale('errorMissingCodeTitle')}</Title> | ||
</AlertBox> | ||
) | ||
} | ||
} |
Oops, something went wrong.