Skip to content

Commit 61a6219

Browse files
committed
Fix erroneous WithLocalization renaming
1 parent 8021604 commit 61a6219

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fluent-react/src/with_localization.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { createElement, useContext } from "react";
22
import FluentContext from "./context";
33

44
export default function withLocalization(Inner) {
5-
function WithDisplay(props) {
5+
function WithLocalization(props) {
66
const { l10n } = useContext(FluentContext);
77
return createElement(
88
Inner,
@@ -18,9 +18,9 @@ export default function withLocalization(Inner) {
1818
);
1919
}
2020

21-
WithDisplay.displayName = `WithLocalization(${displayName(Inner)})`;
21+
WithLocalization.displayName = `WithLocalization(${displayName(Inner)})`;
2222

23-
return WithDisplay;
23+
return WithLocalization;
2424
}
2525

2626
function displayName(component) {

0 commit comments

Comments
 (0)