diff --git a/.env b/.env index 286b0ab..3532055 100644 --- a/.env +++ b/.env @@ -114,4 +114,7 @@ REACT_APP_SHOW_NEW_FAMILY_DASH=1 REACT_APP_SHOW_ACCOUNT_DASH=1 # Displays the slider banners -REACT_APP_SHOW_SLIDER_BANNERS=0 \ No newline at end of file +REACT_APP_SHOW_SLIDER_BANNERS=0 + +# FOR MEDIA LINK +REACT_APP_MEDIA_LINK='https://dev-media.wrenchboard.com ' \ No newline at end of file diff --git a/.env.development b/.env.development index 52ab627..18cf90f 100644 --- a/.env.development +++ b/.env.development @@ -82,4 +82,7 @@ REACT_APP_SHOW_NEW_FAMILY_DASH=1 REACT_APP_SHOW_ACCOUNT_DASH=1 # Displays the slider banners -REACT_APP_SHOW_SLIDER_BANNERS=0 \ No newline at end of file +REACT_APP_SHOW_SLIDER_BANNERS=0 + +# FOR MEDIA LINK +REACT_APP_MEDIA_LINK='https://dev-media.wrenchboard.com ' \ No newline at end of file diff --git a/.env.production b/.env.production index 5d5a2cc..22e5082 100644 --- a/.env.production +++ b/.env.production @@ -88,4 +88,7 @@ REACT_APP_SHOW_NEW_FAMILY_DASH=1 REACT_APP_SHOW_ACCOUNT_DASH=1 # Displays the slider banners -REACT_APP_SHOW_SLIDER_BANNERS=0 \ No newline at end of file +REACT_APP_SHOW_SLIDER_BANNERS=0 + +# FOR MEDIA LINK +REACT_APP_MEDIA_LINK='https://media.wrenchboard.com ' \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 29ecd64..0d945e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,6 +36,7 @@ "react-toastify": "^9.0.1", "redux": "^4.2.0", "slick-carousel": "^1.8.1", + "socket.io-client": "^4.4.1", "web-vitals": "^1.0.1", "yup": "^1.1.1" } @@ -3717,6 +3718,11 @@ "@sinonjs/commons": "^1.7.0" } }, + "node_modules/@socket.io/component-emitter": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz", + "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==" + }, "node_modules/@surma/rollup-plugin-off-main-thread": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz", @@ -7078,6 +7084,46 @@ "node": ">= 0.8" } }, + "node_modules/engine.io-client": { + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.5.3.tgz", + "integrity": "sha512-9Z0qLB0NIisTRt1DZ/8U2k12RJn8yls/nXMZLn+/N8hANT3TcYjKFKcwbw5zFQiN4NTde3TSY9zb79e1ij6j9Q==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1", + "engine.io-parser": "~5.2.1", + "ws": "~8.11.0", + "xmlhttprequest-ssl": "~2.0.0" + } + }, + "node_modules/engine.io-client/node_modules/ws": { + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", + "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/engine.io-parser": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.2.tgz", + "integrity": "sha512-RcyUFKA93/CXH20l4SoVvzZfrSDMOTUS3bWVpTt2FuFP+XYrL8i8oonHP7WInRyVHXh0n/ORtoeiE1os+8qkSw==", + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/enhanced-resolve": { "version": "5.12.0", "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", @@ -16099,6 +16145,32 @@ "jquery": ">=1.8.0" } }, + "node_modules/socket.io-client": { + "version": "4.7.5", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.7.5.tgz", + "integrity": "sha512-sJ/tqHOCe7Z50JCBCXrsY3I2k03iOiUe+tj1OmKeD2lXPiGH/RUCdTZFoqVyN7l1MnpIzPrGtLcijffmeouNlQ==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.2", + "engine.io-client": "~6.5.2", + "socket.io-parser": "~4.2.4" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/socket.io-parser": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.4.tgz", + "integrity": "sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew==", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/sockjs": { "version": "0.3.24", "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", @@ -18111,6 +18183,14 @@ "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" }, + "node_modules/xmlhttprequest-ssl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz", + "integrity": "sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", diff --git a/src/components/FamilyAcc/FamilyPopout/AssignTaskPopout.jsx b/src/components/FamilyAcc/FamilyPopout/AssignTaskPopout.jsx index 2bdb60d..32fe6e0 100644 --- a/src/components/FamilyAcc/FamilyPopout/AssignTaskPopout.jsx +++ b/src/components/FamilyAcc/FamilyPopout/AssignTaskPopout.jsx @@ -300,7 +300,7 @@ const AssignTaskPopout = ({ ) : ( <>
+ {activeTask?.data?.description} +
{PriceFormatter( diff --git a/src/components/FamilyAcc/FamilyPopout/forms/NewTasks.jsx b/src/components/FamilyAcc/FamilyPopout/forms/NewTasks.jsx index 50f160d..38651e9 100644 --- a/src/components/FamilyAcc/FamilyPopout/forms/NewTasks.jsx +++ b/src/components/FamilyAcc/FamilyPopout/forms/NewTasks.jsx @@ -49,11 +49,91 @@ export default function NewTasks({ formState, setFormState }) { return (