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

[25Points each] Remove Unnecessary Code #21

Open
Sarfraz-droid opened this issue Oct 18, 2024 · 0 comments
Open

[25Points each] Remove Unnecessary Code #21

Sarfraz-droid opened this issue Oct 18, 2024 · 0 comments
Labels

Comments

@Sarfraz-droid
Copy link
Owner

Sarfraz-droid commented Oct 18, 2024

Remove Unnecessary Checks:

editable: true && activeCard?.data.editable,

Remove Imports:

import { RemoveCircle } from "@mui/icons-material";

Remove State Here:

const [Doc, setDoc] = useState("");

Remove Log:

Remove Style:

Remove Comments:

// {
// "error": {
// "code": "",
// "message": ""
// },
// "function": {
// "content": "\n /*\n the object should be returned as value of the ouput\n if ouput has \n {\n type: \"string\",\n value: \"Hello\"\n }\n\n then the function should return {\n Hello: \"Output String\"\n }\n */\n \n(input, parameter) => {\n return {\n 'out' : input['A'] > input['B']\n };\n}",
// "outdated": false,
// "old": ""
// },
// "editable": true,
// "label": "Heading",
// "renderer": null,
// "output": [
// {
// "type": "boolean",
// "value": false,
// "id": "boolean__output__tYGLILcuEv8v8h9ca5Hu1",
// "name": "out"
// }
// ],
// "parameters": [],
// "input": [
// {
// "type": "number",
// "value": 0,
// "id": "number__input__2iZ0iTgxr8-Z1uqs0BCIo",
// "name": "A"
// },
// {
// "type": "number",
// "value": 0,
// "id": "number__input__Gwe8rJBGWUDIqaWz9ognx",
// "name": "B"
// }
// ],
// "start": "root__tOKjDbTCR4UXTrl60BIuD",
// "end": "root__fzZYmGW6dpqD4-w16ulJx"
// }

https://github.com/Sarfraz-droid/JS-Blueprints/blob/062d762d1b48295d90ed71b1e430d973242751c5/packages/client/src/predefined_components/Number/addNumber.ts#L43-L94

https://github.com/Sarfraz-droid/JS-Blueprints/blob/062d762d1b48295d90ed71b1e430d973242751c5/packages/client/src/predefined_components/Number/DivideNumbers.ts#L42-L93

https://github.com/Sarfraz-droid/JS-Blueprints/blob/062d762d1b48295d90ed71b1e430d973242751c5/packages/client/src/predefined_components/Number/addNumber.ts#L43-L94

Remove File:
https://github.com/Sarfraz-droid/JS-Blueprints/blob/2540bf745d541dd7ecbddb857075f9d39b7a8ea5/packages/client/src/components/formHandler/styles.module.scss

@Sarfraz-droid Sarfraz-droid converted this from a draft issue Oct 18, 2024
@Sarfraz-droid Sarfraz-droid changed the title [50 Points] Remove Unnecessary Checks from the Code [50 Points] Remove Unnecessary Code Oct 18, 2024
@Sarfraz-droid Sarfraz-droid changed the title [50 Points] Remove Unnecessary Code [25Points each] Remove Unnecessary Code Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant