Skip to content

Commit 04a9fa8

Browse files
committed
refactor: update consent dialog messaging and remove unused state
- Removed the agreeToTerms function from the ConsentDialog component as it was no longer needed. - Revised consent dialog messaging for clarity, specifying that the app does not currently collect data and outlining future data collection practices. - Enhanced user instructions for acknowledging terms before using the app.
1 parent 8370e10 commit 04a9fa8

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

tauri-app/src/components/settings/consent.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { useEffect, useState } from "react";
1010

1111
export function ConsentDialog() {
1212
const hasAgreed = useConsentStore((state) => state.hasAgreedToTerms);
13-
const agreeToTerms = useConsentStore((state) => state.agreeToTerms);
1413
const declineTerms = useConsentStore((state) => state.declineTerms);
1514

1615
const [open, setOpen] = useState(false);
@@ -22,7 +21,6 @@ export function ConsentDialog() {
2221
}, [hasAgreed]);
2322

2423
const handleAgree = () => {
25-
agreeToTerms();
2624
setOpen(false);
2725
};
2826

@@ -36,16 +34,16 @@ export function ConsentDialog() {
3634
<DialogContent>
3735
<DialogTitle>Terms and Conditions</DialogTitle>
3836
<div>
39-
Please agree to the terms before using the app.
37+
To use this app, please acknowledge the terms.
4038
<br />
4139
<br />
42-
<b>
43-
server name and client name data may be collected to improve the
44-
experience.
45-
</b>
40+
<b>This app does not collect any data at this time.</b>
4641
<br />
47-
By clicking Agree, you consent to the collection of usage data as
48-
described. You can disable any time at setting page.
42+
In the future, data may be collected to improve user experience, but
43+
you will be notified and can opt out.
44+
<br />
45+
<br />
46+
By clicking "Agree", you acknowledge this notice.
4947
</div>
5048
<DialogFooter>
5149
<Button variant="outline" onClick={handleDecline}>

0 commit comments

Comments
 (0)