Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
cmayeux05 committed Feb 16, 2024
2 parents 652522b + 5e748cc commit ed80cb0
Show file tree
Hide file tree
Showing 19 changed files with 236 additions and 395 deletions.
4 changes: 2 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"react-hooks-global-state": "^2.1.0",
"react-papaparse": "^3.17.1",
"react-router-dom": "^6.9.0",
"vite": "^4.2.0",
"recharts": "^2.5.0",
"yarn": "^1.22.10"
"vite": "^4.2.0",
"yarn": "^1.22.21"
},
"scripts": {
"start": "vite",
Expand Down
1 change: 1 addition & 0 deletions client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import ForgetPassword from './views/TeacherLogin/ForgetPassword';
import ResetPassword from './views/TeacherLogin/ResetPassword';
import TeacherLogin from './views/TeacherLogin/TeacherLogin';


const App = () => {
return (
<div>
Expand Down
4 changes: 2 additions & 2 deletions client/src/Utils/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ export const updateDayDetails = async (
path: `${server}/days/${id}`,
data: {
description,
// template,
// activity_template,
//template,
//activity_template,
TekS,
images,
link,
Expand Down
1 change: 1 addition & 0 deletions client/src/serviceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
// To learn more about the benefits of this model and instructions on how to
// opt-in, read https://bit.ly/CRA-PWA


const isLocalhost = Boolean(
window.location.hostname === 'localhost' ||
// [::1] is the IPv6 localhost address.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const DayDetailModal = ({
<Input.TextArea
onChange={e => setDescription(e.target.value)}
value={description}
required
//required
placeholder="Enter description"
></Input.TextArea>
</Form.Item>
Expand All @@ -186,7 +186,7 @@ const DayDetailModal = ({
onChange={e => setTekS(e.target.value)}
value={TekS}
className="input"
required
//required
placeholder="Enter tekS"
></Input>
</Form.Item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default function LearningStandardCreator({
<Form.Item label="Description">
<Input.TextArea
rows={3}
required

onChange={e => {
setDescription(e.target.value)
}}
Expand All @@ -187,7 +187,7 @@ export default function LearningStandardCreator({
onChange={e => {
setTeks(e.target.value)
}}
required

value={teks}
placeholder="Enter lesson Teks"
/>
Expand Down
4 changes: 2 additions & 2 deletions client/src/views/ContentCreator/LessonEditor/LessonEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ export default function LessonEditor({
onChange={e => setDescription(e.target.value)}
value={description}
rows={3}
required
//required
placeholder="Enter lesson description"
/>
</Form.Item>
<Form.Item id="form-label" label="Teks">
<Input
onChange={e => setTeks(e.target.value)}
value={teks}
required
//required
placeholder="Enter lesson teks"
/>
</Form.Item>
Expand Down
7 changes: 4 additions & 3 deletions client/src/views/ContentCreator/UnitCreator/UnitCreator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ export default function UnitCreator({ gradeList }) {
type="number"
value={number}
placeholder="Enter unit number"
required
min={1}
max={15}
required

/>
</Form.Item>
<Form.Item id="form-label" label="Description">
Expand All @@ -100,15 +101,15 @@ export default function UnitCreator({ gradeList }) {
onChange={e => setDescription(e.target.value)}
value={description}
placeholder="Enter unit description"
required

/>
</Form.Item>
<Form.Item id="form-label" label="TekS">
<Input
onChange={e => setTek(e.target.value)}
value={tek}
placeholder="Enter unit Teks"
required

/>
</Form.Item>
<Form.Item
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const MentorDayDetailModal = ({
<Input.TextArea
onChange={e => setDescription(e.target.value)}
value={description}
required

placeholder="Enter description"
></Input.TextArea>
</Form.Item>
Expand All @@ -195,7 +195,7 @@ const MentorDayDetailModal = ({
onChange={e => setTekS(e.target.value)}
value={TekS}
className="input"
required

placeholder="Enter tekS"
></Input>
</Form.Item>
Expand Down
1 change: 1 addition & 0 deletions client/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import react from "@vitejs/plugin-react-swc"
import { defineConfig } from "vite"

const base = process.env.PUBLIC_URL ?? "/"
console.log(base);

export default defineConfig({
css: {
Expand Down
Loading

0 comments on commit ed80cb0

Please sign in to comment.