+
modal.hideModal()}
className={stl.overlay}
style={{ background: "rgba(0,0,0,0.5)" }}
/>
-
{children}
+
{children}
);
}
diff --git a/frontend/app/components/Modal/index.tsx b/frontend/app/components/Modal/index.tsx
index a653ed24f..339a79fbd 100644
--- a/frontend/app/components/Modal/index.tsx
+++ b/frontend/app/components/Modal/index.tsx
@@ -4,7 +4,9 @@ import Modal from './Modal';
const ModalContext = createContext({
component: null,
- props: {},
+ props: {
+ right: false,
+ },
showModal: (component: any, props: any) => {},
hideModal: () => {}
});
diff --git a/frontend/app/components/Session_/Player/Controls/Controls.js b/frontend/app/components/Session_/Player/Controls/Controls.js
index ab1baba3e..abbf40803 100644
--- a/frontend/app/components/Session_/Player/Controls/Controls.js
+++ b/frontend/app/components/Session_/Player/Controls/Controls.js
@@ -276,13 +276,13 @@ export default class Controls extends React.Component {
label="Back"
icon="replay-10"
/>
-
+ /> */}
)}
diff --git a/frontend/app/components/Session_/Player/Controls/DraggableCircle.tsx b/frontend/app/components/Session_/Player/Controls/DraggableCircle.tsx
index f4ebd6abf..385707879 100644
--- a/frontend/app/components/Session_/Player/Controls/DraggableCircle.tsx
+++ b/frontend/app/components/Session_/Player/Controls/DraggableCircle.tsx
@@ -19,7 +19,7 @@ function getStyles(
// because IE will ignore our custom "empty image" drag preview.
opacity: isDragging ? 0 : 1,
height: isDragging ? 0 : '',
- zIndex: '99',
+ zIndex: 99,
cursor: 'move'
}
}
diff --git a/frontend/app/components/shared/Select/Select.tsx b/frontend/app/components/shared/Select/Select.tsx
new file mode 100644
index 000000000..85418f5fc
--- /dev/null
+++ b/frontend/app/components/shared/Select/Select.tsx
@@ -0,0 +1,64 @@
+import React from 'react';
+import Select from 'react-select';
+
+interface Props {
+ options: any[];
+ isSearchable?: boolean;
+ defaultValue?: string;
+ plain?: boolean;
+ [x:string]: any;
+}
+export default function({ plain = false, options, isSearchable = false, defaultValue = '', ...rest }: Props) {
+ const customStyles = {
+ option: (provided, state) => ({
+ ...provided,
+ whiteSpace: 'nowrap',
+ }),
+ menu: (provided, state) => ({
+ ...provided,
+ top: 31,
+ }),
+ control: (provided) => {
+ const obj = {
+ ...provided,
+ border: 'solid thin #ddd'
+ }
+ if (plain) {
+ obj['border'] = '1px solid transparent'
+ }
+ return obj;
+ },
+ valueContainer: (provided) => ({
+ ...provided,
+ paddingRight: '0px',
+ }),
+ singleValue: (provided, state) => {
+ const opacity = state.isDisabled ? 0.5 : 1;
+ const transition = 'opacity 300ms';
+
+ return { ...provided, opacity, transition };
+ }
+ }
+ const defaultSelected = defaultValue ? options.find(x => x.value === defaultValue) : options[0];
+ return (
+