@stevederico/skateboard-ui 1.3.9 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/SignUpView.jsx +0 -41
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/SignUpView.jsx
CHANGED
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
} from "./shadcn/ui/card"
|
|
9
9
|
import { Input } from "./shadcn/ui/input"
|
|
10
10
|
import { Label } from "./shadcn/ui/label"
|
|
11
|
-
import { Checkbox } from "./shadcn/ui/checkbox.jsx"
|
|
12
11
|
import DynamicIcon from './DynamicIcon';
|
|
13
12
|
import { useNavigate } from 'react-router-dom';
|
|
14
13
|
import { getState } from "./Context.jsx";
|
|
@@ -23,7 +22,6 @@ export default function LoginForm({
|
|
|
23
22
|
const [email, setEmail] = useState('');
|
|
24
23
|
const [password, setPassword] = useState('');
|
|
25
24
|
const [name, setName] = useState('');
|
|
26
|
-
const [acceptedTerms, setAcceptedTerms] = useState(false);
|
|
27
25
|
const navigate = useNavigate();
|
|
28
26
|
const [errorMessage, setErrorMessage] = useState('')
|
|
29
27
|
const nameInputRef = useRef(null);
|
|
@@ -46,10 +44,6 @@ export default function LoginForm({
|
|
|
46
44
|
setErrorMessage('Password must be 72 characters or less');
|
|
47
45
|
return;
|
|
48
46
|
}
|
|
49
|
-
if (!acceptedTerms) {
|
|
50
|
-
setErrorMessage('You must accept the Terms of Service to continue');
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
47
|
try {
|
|
54
48
|
const response = await fetch(`${getBackendURL()}/signup`, {
|
|
55
49
|
method: 'POST',
|
|
@@ -143,41 +137,6 @@ export default function LoginForm({
|
|
|
143
137
|
<p className="text-xs text-gray-500 dark:text-gray-400 ml-1">Minimum 6 characters</p>
|
|
144
138
|
</div>
|
|
145
139
|
|
|
146
|
-
<div className="flex items-start gap-2 pt-2">
|
|
147
|
-
<Checkbox
|
|
148
|
-
id="terms"
|
|
149
|
-
checked={acceptedTerms}
|
|
150
|
-
onCheckedChange={setAcceptedTerms}
|
|
151
|
-
className="mt-0.5"
|
|
152
|
-
/>
|
|
153
|
-
<label
|
|
154
|
-
htmlFor="terms"
|
|
155
|
-
className="text-sm text-gray-600 dark:text-gray-400 cursor-pointer"
|
|
156
|
-
>
|
|
157
|
-
I agree to the{' '}
|
|
158
|
-
<span
|
|
159
|
-
onClick={(e) => { e.preventDefault(); navigate('/terms'); }}
|
|
160
|
-
className="underline underline-offset-4 cursor-pointer text-gray-900 dark:text-white"
|
|
161
|
-
>
|
|
162
|
-
Terms of Service
|
|
163
|
-
</span>
|
|
164
|
-
{', '}
|
|
165
|
-
<span
|
|
166
|
-
onClick={(e) => { e.preventDefault(); navigate('/eula'); }}
|
|
167
|
-
className="underline underline-offset-4 cursor-pointer text-gray-900 dark:text-white"
|
|
168
|
-
>
|
|
169
|
-
EULA
|
|
170
|
-
</span>
|
|
171
|
-
{', and '}
|
|
172
|
-
<span
|
|
173
|
-
onClick={(e) => { e.preventDefault(); navigate('/privacy'); }}
|
|
174
|
-
className="underline underline-offset-4 cursor-pointer text-gray-900 dark:text-white"
|
|
175
|
-
>
|
|
176
|
-
Privacy Policy
|
|
177
|
-
</span>
|
|
178
|
-
</label>
|
|
179
|
-
</div>
|
|
180
|
-
|
|
181
140
|
<button
|
|
182
141
|
type="submit"
|
|
183
142
|
className="relative group w-full text-white px-8 py-4 rounded-xl font-semibold text-lg transition-all duration-300 shadow-xl backdrop-blur-sm overflow-hidden cursor-pointer"
|