Skip to content

Commit

Permalink
Remove show new post notifs setting. (#2675)
Browse files Browse the repository at this point in the history
- Fixes #2667
  • Loading branch information
dessalines authored Aug 27, 2024
1 parent d69dd15 commit d4b6f29
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/shared/components/person/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ interface SettingsState {
bot_account?: boolean;
show_bot_accounts?: boolean;
show_read_posts?: boolean;
show_new_post_notifs?: boolean;
discussion_languages?: number[];
open_links_in_new_tab?: boolean;
};
Expand Down Expand Up @@ -1093,23 +1092,6 @@ export class Settings extends Component<SettingsRouteProps, SettingsState> {
</label>
</div>
</div>
<div className="input-group mb-3">
<div className="form-check">
<input
className="form-check-input"
id="user-show-new-post-notifs"
type="checkbox"
checked={this.state.saveUserSettingsForm.show_new_post_notifs}
onChange={linkEvent(this, this.handleShowNewPostNotifs)}
/>
<label
className="form-check-label"
htmlFor="user-show-new-post-notifs"
>
{I18NextService.i18n.t("show_new_post_notifs")}
</label>
</div>
</div>
<div className="input-group mb-3">
<div className="form-check">
<input
Expand Down Expand Up @@ -1496,14 +1478,6 @@ export class Settings extends Component<SettingsRouteProps, SettingsState> {
);
}

handleShowNewPostNotifs(i: Settings, event: any) {
i.setState(
s => (
(s.saveUserSettingsForm.show_new_post_notifs = event.target.checked), s
),
);
}

handleOpenInNewTab(i: Settings, event: any) {
i.setState(
s => (
Expand Down

0 comments on commit d4b6f29

Please sign in to comment.