Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web,mobile): save pull request description checkbox changes #30704

Mergedshivamhwp(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/30704/headmerged by shivamhwp(GitHub profile, opens in a new tab) View on GitHub

Showing 24 changed files with 50 additions and 4 deletions (loading 21).

x
0 of 24 viewed, 24 left
6 additions and 2 deletionsapps/mobile/src/features/pull-requests/PullRequestDescription.tsxModified
View file
@@ -5,7 +5,7 @@
PullRequestMediaContext,
} from "./PullRequestMedia";
import { PullRequestSectionHeading } from "./PullRequestSectionHeading";
-import { useContext, useMemo, useState, type ReactNode } from "react";
+import { useContext, useMemo, useState, type ComponentProps, type ReactNode } from "react";
import { Platform, Pressable, ScrollView, StyleSheet, View } from "react-native";
import Svg, { Defs, LinearGradient, Rect, Stop } from "react-native-svg";
import { pullRequestImageSource } from "./pullRequestMediaSource";
@@ -26,6 +26,7 @@
readonly expanded: boolean;
readonly onExpandedChange: (expanded: boolean) => void;
readonly footer?: ReactNode;
+ readonly onTaskListChange?: ComponentProps<typeof PullRequestMarkdown>["onTaskListChange"];
}) {
const { expanded, onExpandedChange } = props;
const [bodyHeight, setBodyHeight] = useState(0);
@@ -66,7 +67,10 @@
style={{ position: "absolute", top: 0, left: 0, right: 0 }}
onLayout={(event) => setBodyHeight(event.nativeEvent.layout.height)}
- <PullRequestMarkdown markdown={props.markdown} />
+ <PullRequestMarkdown
+ markdown={props.markdown}
+ onTaskListChange={props.onTaskListChange}
+ />
</View>
</View>