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

remove babel-preset-react #4431

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/javascript/packs/banner_editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ReactDOM from "react-dom";
import { FormattedMessage, IntlProvider } from "react-intl";
import AvatarEditor from "react-avatar-editor";

import "babel-polyfill";
import "core-js/stable";

import BannerPreview from "../packs/banner_preview.jsx";
import Navbar from "../packs/navbar.jsx";
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/publishers/home.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fetchAfterDelay, submitForm } from "../utils/request";
import "babel-polyfill";
import "core-js/stable";
import fetch from "../utils/fetchPolyfill";
import flash from "../utils/flash";
import { Wallet } from "../wallet";
Expand Down
2 changes: 1 addition & 1 deletion nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"typecheck": "tsc --noEmit --incremental false"
},
"dependencies": {
"@brave/leo": "github:brave/leo#80f2230bcfb7d2a87e7025a4e26c502d900fd938",
"@brave/leo": "github:brave/leo#895c0a25d197ed0567ddf3ebbd0c8a01fa02fc83",
"@github/webauthn-json": "^2.1.1",
"axios": "^1.6.0",
"clsx": "^2.0.0",
Expand Down
3 changes: 2 additions & 1 deletion nextjs/src/app/[locale]/publishers/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ export default function NavigationLayout({
<UserProvider>
<div className='bg-container relative flex items-center justify-between px-2 transition-colors'>
<Image
src='/brave_creators_logo.png'
src='/images/brave_creators_logo.png'
alt='Brave Creators Logo'
height={80}
width={250}
priority={true}
/>
<NavDropdown />
Expand Down
4 changes: 2 additions & 2 deletions nextjs/src/app/[locale]/publishers/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export default function SettingsPage() {
push('/');
}

function handleToggleChange(e: CustomEvent, name: string) {
const newSettings = { ...settings, [name]: e.detail.checked };
function handleToggleChange(e, name: string) {
const newSettings = { ...settings, [name]: e.checked };

setSettings(newSettings);
updateAccountSettings(newSettings);
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"webpack-merge": "5.9"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-class-properties": "^7.24.1",
"@babel/preset-react": "^7.24.1",
"@rails/webpacker": "^5.4.4",
"@types/jest": "^29.5.3",
Expand All @@ -113,13 +113,9 @@
"@types/styled-components": "^5.1.26",
"audit-ci": "6.6.1",
"autoprefixer": "10.4.15",
"babel-core": "7.0.0-bridge.0",
"babel-plugin-styled-components": "2.1.4",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^7.0.0-beta.3",
"babel-polyfill": "^6.26.0",
"babel-preset-react": "^6.24.1",
"cssnano": "6.0.1",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.7",
Expand Down
278 changes: 5 additions & 273 deletions yarn.lock

Large diffs are not rendered by default.

Loading