1
0
Fork 0

wip(org): Going through account pages

This commit is contained in:
joostdecock 2023-08-19 18:01:22 +02:00
parent cae9229232
commit 4744759d0b
45 changed files with 765 additions and 538 deletions

View file

@ -60,12 +60,11 @@ export const SlugInput = ({ slug, setSlug, title, slugAvailable }) => {
useEffect(() => {
if (title !== slug) setSlug(slugify(title))
}, [title])
console.log(slugAvailable)
return (
<input
className={`input input-text input-bordered input-lg w-full mb-2 ${
!slugAvailable || slug.length < 4 ? 'input-error' : 'input-success'
true || !slugAvailable || slug.length < 4 ? 'input-error' : 'input-success'
}`}
value={slug}
placeholder="Type your title here"