-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow showing the content of collapsed comments
- Loading branch information
1 parent
b8d18da
commit 6b79f69
Showing
9 changed files
with
89 additions
and
19 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
21 changes: 21 additions & 0 deletions
21
src/features/settings/general/comments/ShowCollapsedComment.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,21 @@ | ||
import { IonLabel, IonToggle } from "@ionic/react"; | ||
import { InsetIonItem } from "../../../../pages/profile/ProfileFeedItemsPage"; | ||
import { useAppDispatch, useAppSelector } from "../../../../store"; | ||
import { setShowCollapsedComment } from "../../settingsSlice"; | ||
|
||
export default function ShowCollapsedComment() { | ||
const dispatch = useAppDispatch(); | ||
const showCollapsedComment = useAppSelector( | ||
(state) => state.settings.general.comments.showCollapsedComment | ||
); | ||
|
||
return ( | ||
<InsetIonItem> | ||
<IonLabel>Show Collapsed Comment</IonLabel> | ||
<IonToggle | ||
checked={showCollapsedComment} | ||
onIonChange={(e) => dispatch(setShowCollapsedComment(e.detail.checked))} | ||
/> | ||
</InsetIonItem> | ||
); | ||
} |
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