Skip to content

Commit

Permalink
Fix #29 and #26
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed Sep 17, 2023
1 parent e7dd0be commit bff5707
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Website/src/activitys/DAPITestActivity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import { Page } from "@Components/onsenui/Page";
import { os } from "@Native/Os";
import { useActivity } from "@Hooks/useActivity";
import { useStrings } from "@Hooks/useStrings";
import DescriptonActivity from "./DescriptonActivity";
import { Markup } from "@Components/Markdown";
import FetchTextActivity from "./FetchTextActivity";

interface CustomCommand extends Command {
icon: React.ElementType;
Expand Down Expand Up @@ -140,11 +140,11 @@ const DAPITestActivity = () => {

const handlePreview = () => {
context.pushPage({
component: DescriptonActivity,
component: FetchTextActivity,
key: "dapi-preview",
extra: {
title: "Preview",
desc: description,
data: description,
},
});
};
Expand Down
3 changes: 2 additions & 1 deletion Website/src/activitys/FetchTextActivity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { MissingInternet } from "@Components/MissingInternet";

type FetchTextActivityExtra = {
title: string;
data: string;
url: string;
};

Expand All @@ -30,7 +31,7 @@ function FetchTextActivity() {

const initialState: State<string> = {
error: undefined,
data: undefined,
data: extra.data || undefined,
};

// Keep state logic separated
Expand Down

0 comments on commit bff5707

Please sign in to comment.