Skip to content

Commit e95a71c

Browse files
author
Mizanur Rahaman
committed
Merge branch 'dashboard' of https://github.com/Wealcoder/animation-addons-for-elementor into dashboard
2 parents c0a659e + b8491d7 commit e95a71c

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

inc/admin/dashboard/src/components/wizards/CredentialAlert.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ const CredentialAlert = () => {
2929
plugin, including animation settings, performance metrics, feature
3030
preferences, and other non-sensitive data. This data helps us
3131
improve functionality, optimize performance, and ensure better
32-
updates. We never collect any personal information and sensitive
33-
data.
32+
updates. We never collect sensitive data.
3433
</p>
3534
<div className="flex justify-end mt-6">
3635
<DialogClose asChild>

inc/admin/dashboard/src/context/app.context.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const initialState = {
3434
notice: [],
3535
changelog: [],
3636
tabKey: "",
37-
isSkipTerms: false,
37+
isSkipTerms: true,
3838
};
3939

4040
const reducer = (state, action) => {

inc/admin/dashboard/src/pages/wizards/WizardTerms.jsx

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ import Shape4 from "../../../public/images/wizard/shape4.png";
66
import Shape5 from "../../../public/images/wizard/shape5.png";
77
import Shape6 from "../../../public/images/wizard/shape6.png";
88
import CredentialAlert from "@/components/wizards/CredentialAlert";
9+
import { Checkbox } from "@/components/ui/checkbox";
10+
import { useSkip } from "@/hooks/app.hooks";
911

1012
const WizardTerms = () => {
13+
const { isSkipTerms, setIsSkipTerms } = useSkip();
14+
1115
return (
1216
<div className="rounded-lg overflow-hidden mx-2.5">
1317
<div className="bg-[linear-gradient(0deg,rgba(245,246,248,0.50)_0%,rgba(245,246,248,0.50)_100%)] rounded-lg relative">
@@ -16,7 +20,7 @@ const WizardTerms = () => {
1620
style={{ backgroundImage: `url(${TemplateTopBg})` }}
1721
>
1822
<div className="pt-[80px] max-w-[730px] mx-auto text-center flex flex-col gap-3">
19-
<div className="bg-white rounded-full py-[5px] ps-2 pe-2.5 mx-auto max-w-[120px] flex justify-center items-center gap-1.5 shadow-[0px_0px_0px_1px_rgba(44,64,94,0.06),0px_1px_1px_0px_rgba(44,64,94,0.04),0px_2px_4px_0px_rgba(44,64,94,0.08)]">
23+
<div className="bg-white rounded-full py-[5px] ps-2 pe-2.5 mx-auto max-w-[180px] flex justify-center items-center gap-1.5 shadow-[0px_0px_0px_1px_rgba(44,64,94,0.06),0px_1px_1px_0px_rgba(44,64,94,0.04),0px_2px_4px_0px_rgba(44,64,94,0.08)]">
2024
<span className="flex justify-center items-center">
2125
<svg
2226
xmlns="http://www.w3.org/2000/svg"
@@ -57,7 +61,7 @@ const WizardTerms = () => {
5761
</div>
5862
<div className="mt-[40px] w-[600px] mx-auto text-center">
5963
<div className="flex justify-center items-center gap-2.5 ps-3 pe-4 pt-[11px] pb-3 rounded-[10px]">
60-
<svg
64+
{/* <svg
6165
xmlns="http://www.w3.org/2000/svg"
6266
width="20"
6367
height="20"
@@ -76,7 +80,20 @@ const WizardTerms = () => {
7680
</clipPath>
7781
</defs>
7882
</svg>
79-
<p>By continuing, you allow this plugin to collect your data.</p>
83+
<p>By continuing, you allow this plugin to collect your data.</p> */}
84+
<div className="flex items-center space-x-2">
85+
<Checkbox
86+
id="aae-plugin-continuing-terms"
87+
checked={!isSkipTerms}
88+
onCheckedChange={() => setIsSkipTerms(!isSkipTerms)}
89+
/>
90+
<label
91+
htmlFor="aae-plugin-continuing-terms"
92+
className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
93+
>
94+
By continuing, you allow this plugin to collect your data.
95+
</label>
96+
</div>
8097
<CredentialAlert />
8198
</div>
8299
</div>

0 commit comments

Comments
 (0)