Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add rich text editor #85

Merged
merged 5 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Name: job-bank
- next: React framework for building server-rendered applications.
- react: JavaScript library for building user interfaces.
- react-dom: React library for DOM rendering.
- react-quill: rich text editor component for React
- stripe: Stripe library for server-side integration.
- tailwind-merge: Utility library for merging Tailwind CSS classes.
- tailwindcss-animate: Tailwind CSS plugin for animations.
Expand Down
139 changes: 131 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,17 @@
},
"dependencies": {
"@auth0/nextjs-auth0": "^3.5.0",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-slot": "^1.0.2",
"@stripe/stripe-js": "^3.4.0",
"@heroicons/react": "^2.1.3",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-slot": "^1.0.2",
"axios": "^1.6.8",
"babel": "^6.23.0",
"@stripe/stripe-js": "^3.4.0",
"@tailwindcss/forms": "^0.5.7",
"auth0": "^4.4.0",
"axios": "^1.6.8",
"babel": "^6.23.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"dotenv": "^16.4.5",
Expand All @@ -40,8 +37,8 @@
"next": "14.2.3",
"react": "^18",
"react-dom": "^18",
"react-quill": "^2.0.0",
"stripe": "^15.6.0",
"react-dom": "^18",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7"
},
Expand Down
5 changes: 1 addition & 4 deletions src/app/admin-panel/postingDetails/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,7 @@ export default function DetailsPage() {
name="benefits"
value={jobPosting.benefits || ''}
onChange={handleChange}
placeholder="Benefits"
required
className="block w-full rounded-md border-0 px-3.5 py-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"
/>
</div>
</div>
Expand Down Expand Up @@ -302,14 +300,13 @@ export default function DetailsPage() {
<label className="block text-sm font-semibold leading-6 text-gray-900">
Description*
</label>
<div className="mt-2.5">
<div>
<DynamicTextarea
name="description"
value={jobPosting.description || ''}
onChange={handleChange}
placeholder="Description"
required
className="block w-full rounded-md border-0 px-3.5 py-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"
/>
</div>
</div>
Expand Down
4 changes: 0 additions & 4 deletions src/components/ui/addJobPostingForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ const AddJobPostingForm = ({ onSubmit, email }) => {
name="benefits"
value={formData.benefits}
onChange={handleChange}
placeholder="Benefits"
required
className="block w-full rounded-md border-0 px-3.5 py-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"
/>
</div>
</div>
Expand Down Expand Up @@ -277,9 +275,7 @@ const AddJobPostingForm = ({ onSubmit, email }) => {
name="description"
value={formData.description}
onChange={handleChange}
placeholder="Description"
required
className="block w-full rounded-md border-0 px-3.5 py-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6 textarea-auto "
/>
</div>
</div>
Expand Down
Loading
Loading