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

Fix how Ramda imports are being made based on usage >0.25 #1139

Merged
merged 1 commit into from
Jun 13, 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 static/js/components/VideoPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* global videojs: true */
/* global SETTINGS: false */
import React from "react"
import R from "ramda"
import * as R from "ramda"
import _ from "lodash"
import type { Dispatch } from "redux"
import { makeVideoSubtitleUrl } from "../lib/urls"
Expand Down
2 changes: 1 addition & 1 deletion static/js/components/dialogs/hoc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import React from "react"
import R from "ramda"
import * as R from "ramda"
import type { Dispatch } from "redux"

import * as commonUiActions from "../../actions/commonUi"
Expand Down
2 changes: 1 addition & 1 deletion static/js/components/dialogs/hoc_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { assert } from "chai"
import { mount } from "enzyme"
import { Provider } from "react-redux"
import configureTestStore from "redux-asserts"
import R from "ramda"
import * as R from "ramda"
import { connect } from "react-redux"

import Dialog from "../material/Dialog"
Expand Down
2 changes: 1 addition & 1 deletion static/js/components/material/Textfield.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import React from "react"
import R from "ramda"
import * as R from "ramda"

export default class Textfield extends React.Component<*, void> {
props: {
Expand Down
2 changes: 1 addition & 1 deletion static/js/containers/CollectionDetailPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import React from "react"
import { connect } from "react-redux"
import type { Dispatch } from "redux"
import R from "ramda"
import * as R from "ramda"
import _ from "lodash"
import DocumentTitle from "react-document-title"

Expand Down
2 changes: 1 addition & 1 deletion static/js/containers/CollectionListPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* global SETTINGS: false */

import React from "react"
import R from "ramda"
import * as R from "ramda"
import { connect } from "react-redux"
import type { Dispatch } from "redux"
import { Link } from "react-router-dom"
Expand Down
2 changes: 1 addition & 1 deletion static/js/containers/HelpPage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import React from "react"
import { connect } from "react-redux"
import R from "ramda"
import * as R from "ramda"

import WithDrawer from "./WithDrawer"
import FAQ from "../components/FAQ"
Expand Down
2 changes: 1 addition & 1 deletion static/js/containers/VideoDetailPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from "react"
import { connect } from "react-redux"
import moment from "moment"
import type { Dispatch } from "redux"
import R from "ramda"
import * as R from "ramda"
import _ from "lodash"
import DocumentTitle from "react-document-title"

Expand Down
2 changes: 1 addition & 1 deletion static/js/containers/WithDrawer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
/* global SETTINGS: false */
import React from "react"
import R from "ramda"
import * as R from "ramda"
import { connect } from "react-redux"

import * as commonUiActions from "../actions/commonUi"
Expand Down
2 changes: 1 addition & 1 deletion static/js/containers/withPagedCollections.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"
import _ from "lodash"
import R from "ramda"
import * as R from "ramda"
import { connect } from "react-redux"
import type { Dispatch } from "redux"

Expand Down
2 changes: 1 addition & 1 deletion static/js/containers/withVideoAnalytics.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"
import _ from "lodash"
import R from "ramda"
import * as R from "ramda"
import { connect } from "react-redux"
import type { Dispatch } from "redux"

Expand Down
2 changes: 1 addition & 1 deletion static/js/lib/collection.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @flow
import R from "ramda"
import * as R from "ramda"
import _ from "lodash"

import {
Expand Down
2 changes: 1 addition & 1 deletion static/js/lib/dialog.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @flow
import R from "ramda"
import * as R from "ramda"

export const PERM_CHOICE_NONE: string = "none"
export const PERM_CHOICE_PUBLIC: string = "public"
Expand Down
2 changes: 1 addition & 1 deletion static/js/lib/sanctuary.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @flow
import R from "ramda"
import * as R from "ramda"
import { create, env } from "sanctuary"

export const S = create({ checkTypes: false, env: env })
Expand Down
2 changes: 1 addition & 1 deletion static/js/lib/sanctuary_test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import { assert } from "chai"
import R from "ramda"
import * as R from "ramda"

import {
S,
Expand Down
2 changes: 1 addition & 1 deletion static/js/lib/validation.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @flow
import R from "ramda"
import * as R from "ramda"

import { S } from "./sanctuary"

Expand Down
2 changes: 1 addition & 1 deletion static/js/lib/video.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
/* global SETTINGS: false */
import R from "ramda"
import * as R from "ramda"

import {
VIDEO_STATUS_CREATED,
Expand Down
2 changes: 1 addition & 1 deletion static/js/reducers/collections.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import { GET, PATCH, POST, INITIAL_STATE } from "redux-hammock/constants"
import R from "ramda"
import * as R from "ramda"

import * as api from "../lib/api"
import type { Collection, CollectionList } from "../flow/collectionTypes"
Expand Down
2 changes: 1 addition & 1 deletion static/js/util/google_analytics.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
/* global SETTINGS:false */
import ga from "react-ga"
import R from "ramda"
import * as R from "ramda"

const makeGAEvent = (category, action, label, value) => ({
category: category,
Expand Down
2 changes: 1 addition & 1 deletion static/js/util/test_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @flow
import { assert } from "chai"
import _ from "lodash"
import R from "ramda"
import * as R from "ramda"

import type { Action } from "../flow/reduxTypes"
import type { Store } from "redux"
Expand Down
2 changes: 1 addition & 1 deletion static/js/util/util.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import { PERM_CHOICE_LISTS } from "../lib/dialog"
import R from "ramda"
import * as R from "ramda"

export function getDisplayName(WrappedComponent: any) {
return WrappedComponent.displayName || WrappedComponent.name || "Component"
Expand Down
Loading