Skip to content

Commit

Permalink
Merge pull request #1139 from mitodl/ramda_import
Browse files Browse the repository at this point in the history
Fix how Ramda imports are being made based on usage >0.25
  • Loading branch information
blarghmatey authored Jun 13, 2024
2 parents 3005f29 + c8125e4 commit 5c0eca9
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
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

0 comments on commit 5c0eca9

Please sign in to comment.