Closed rootEnginear closed 1 year ago
From these below:
https://github.com/wevisdemo/design-systems/blob/e6992630b864167eb9fb651d421b682641387673/ui/src/components/cookie-consent/cookie-consent.lite.tsx#L164-L167
https://github.com/wevisdemo/design-systems/blob/e6992630b864167eb9fb651d421b682641387673/ui/src/components/cookie-consent/cookie-consent.lite.tsx#L172-L186
This can be refactor into:
<label> <input type="checkbox" checked disabled /> Strictly Necessary Cookies </label>
<label> <input type="checkbox" checked={state.selectedCookies[option]} onChange={(event) => (state.selectedCookies = { ...state.selectedCookies, [option]: event.target.checked, }) } /> {option} {` `}Cookies </label>
This will help with 2 problems:
Fixed in 9487a953f6f35d71633b0fc95ce73a1f56031231
From these below:
https://github.com/wevisdemo/design-systems/blob/e6992630b864167eb9fb651d421b682641387673/ui/src/components/cookie-consent/cookie-consent.lite.tsx#L164-L167
https://github.com/wevisdemo/design-systems/blob/e6992630b864167eb9fb651d421b682641387673/ui/src/components/cookie-consent/cookie-consent.lite.tsx#L172-L186
This can be refactor into:
This will help with 2 problems: