Skip to content

Commit

Permalink
add pp
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed May 12, 2024
1 parent df3548c commit cdf6290
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Website/src/activitys/fragments/DrawerFragment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import ModFSActivity from "@Activitys/ModFSActivity";
import ModConfPlaygroundActivity from "@Activitys/ModConfPlaygroundActivity";
import LicensesActivity from "@Activitys/LicensesActivity";
import { SubmitModuleActivity } from "@Activitys/SubmitModuleActivity";
import { os } from "@Native/Os";
import { useTheme } from "@Hooks/useTheme";

type Props = {
renderToolbar: () => JSX.Element;
Expand All @@ -25,7 +27,7 @@ type Props = {
export const DrawerFragment = (props: Props) => {
const hide = props.hideSplitter;
const pushPage = props.pushPage;

const { theme } = useTheme();
const { strings } = useStrings();

return (
Expand Down Expand Up @@ -122,6 +124,19 @@ export const DrawerFragment = (props: Props) => {
<Divider />

<List subheader={<ListSubheader>Other</ListSubheader>}>
<ListItemButton
onClick={() => {
os.open("https://dergoogler.com/legal/privacy-policy", {
target: "_blank",
features: {
color: theme.palette.background.default,
},
});
hide();
}}
>
<ListItemText primary={strings("privacy_privacy")} />
</ListItemButton>
<ListItemButton
onClick={() => {
pushPage({
Expand Down
1 change: 1 addition & 0 deletions Website/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,5 @@ export const en = {
// terminal activity
reboot_device: "Reboot device?",
reboot_device_desc: "Are you sure to reboot your device?",
privacy_privacy: "Privacy Privacy"
};

0 comments on commit cdf6290

Please sign in to comment.