File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ import { Page } from "@Components/onsenui/Page";
2727import { os } from "@Native/Os" ;
2828import { useActivity } from "@Hooks/useActivity" ;
2929import { useStrings } from "@Hooks/useStrings" ;
30- import DescriptonActivity from "./DescriptonActivity" ;
3130import { Markup } from "@Components/Markdown" ;
31+ import FetchTextActivity from "./FetchTextActivity" ;
3232
3333interface CustomCommand extends Command {
3434 icon : React . ElementType ;
@@ -140,11 +140,11 @@ const DAPITestActivity = () => {
140140
141141 const handlePreview = ( ) => {
142142 context . pushPage ( {
143- component : DescriptonActivity ,
143+ component : FetchTextActivity ,
144144 key : "dapi-preview" ,
145145 extra : {
146146 title : "Preview" ,
147- desc : description ,
147+ data : description ,
148148 } ,
149149 } ) ;
150150 } ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import { MissingInternet } from "@Components/MissingInternet";
1212
1313type FetchTextActivityExtra = {
1414 title : string ;
15+ data : string ;
1516 url : string ;
1617} ;
1718
@@ -30,7 +31,7 @@ function FetchTextActivity() {
3031
3132 const initialState : State < string > = {
3233 error : undefined ,
33- data : undefined ,
34+ data : extra . data || undefined ,
3435 } ;
3536
3637 // Keep state logic separated
You can’t perform that action at this time.
0 commit comments