forked from metabrainz/musicbrainz-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite Preferences page to React/JSX
as part of MBS-9699, plus: - Remove unused checkbox for not yet implemented feature MBS-3285 ('Notify me by email on new releases to my watched artists') which should be added to branch metabrainz/mbs-3285 instead; - Reorder timezone and date/time format fields; - Update date/time format options on timezone change; - Add helper button to guess user timezone.
- Loading branch information
Showing
9 changed files
with
332 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* @flow | ||
* Copyright (C) 2018 MetaBrainz Foundation | ||
* | ||
* This file is part of MusicBrainz, the open internet music database, | ||
* and is licensed under the GPL version 2, or (at your option) any | ||
* later version: http://www.gnu.org/licenses/gpl-2.0.txt | ||
*/ | ||
|
||
import * as React from 'react'; | ||
|
||
import UserAccountLayout from '../components/UserAccountLayout'; | ||
import {withCatalystContext} from '../context'; | ||
import PreferencesForm from '../static/scripts/account/components/PreferencesForm'; | ||
import type {PreferencesFormPropsT} from '../static/scripts/account/components/PreferencesForm'; | ||
import {l} from '../static/scripts/common/i18n'; | ||
import * as manifest from '../static/manifest'; | ||
|
||
type Props = {| | ||
+$c: CatalystContextT, | ||
...PreferencesFormPropsT, | ||
|}; | ||
|
||
const Preferences = withCatalystContext(({$c, ...props}) => ( | ||
<UserAccountLayout | ||
page="preferences" | ||
title={l('Preferences')} | ||
user={$c.user} | ||
> | ||
<PreferencesForm {...props} /> | ||
{manifest.js('account/preferences')} | ||
</UserAccountLayout> | ||
)); | ||
|
||
export default Preferences; |
This file was deleted.
Oops, something went wrong.
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.