Removing components from admin panel

For anyone looking into this.

You go to the file:
node_modules/@strapi/admin/src/pages/AuthPage/components/Register/index.js

You remove the checkbox for news.

You go to the root of your project and you run this command:
npx patch-package @strapi/admin

It will do its thing and create a patch folder with a file inside of it, you never edit this file.

You run your project as normal and the checkbox should be removed. You can use this method to change any of strapis code.