Fix merge conflicts

This commit is contained in:
Nikita Nek Dudnik
2020-05-18 15:54:55 +02:00
parent adee4e2987
commit cfd6508e98
12 changed files with 34 additions and 11 deletions
@@ -22,8 +22,9 @@ import { makeStyles } from '@material-ui/core/styles';
import { PluginHeader } from '../../components/PluginHeader';
import { ActionOutput } from './lib/ActionOutput/ActionOutput';
import { Layout } from '../../components/Layout';
import { useBuildWithSteps, useSettings } from '../../state';
import LaunchIcon from '@material-ui/icons/Launch';
import { useSettings } from '../../state/useSettings';
import { useBuildWithSteps } from '../../state/useBuildWithSteps';
const IconLink = IconButton as typeof Link;
const BuildName: FC<{ build: BuildWithSteps | null }> = ({ build }) => (
@@ -16,7 +16,8 @@
import React, { FC, useEffect } from 'react';
import { CITableBuildInfo, CITable } from '../CITable';
import { BuildSummary } from '../../../../api';
import { useSettings, useBuilds } from '../../../../state';
import { useBuilds } from '../../../../state/useBuilds';
import { useSettings } from '../../../../state/useSettings';
const makeReadableStatus = (status: string | undefined) => {
if (!status) return '';
@@ -27,7 +27,7 @@ import { Alert } from '@material-ui/lab';
import { InfoCard, Content } from '@backstage/core';
import { Layout } from '../../components/Layout';
import { PluginHeader } from '../../components/PluginHeader';
import { useSettings } from '../../state';
import { useSettings } from '../../state/useSettings';
const SettingsPage = () => {
const [
+2 -2
View File
@@ -15,8 +15,8 @@
*/
import React, { FC, useReducer, Dispatch, Reducer } from 'react';
import { circleCIApiRef } from '../api';
import { State, Action, SettingsState } from './types';
export { SettingsState };
import type { SettingsState, State, Action } from './types';
export type { SettingsState };
import equal from 'fast-deep-equal';
export const AppContext = React.createContext<[State, Dispatch<Action>]>(
-3
View File
@@ -14,6 +14,3 @@
* limitations under the License.
*/
export * from './AppState';
export * from './useBuildWithSteps';
export * from './useBuilds';
export * from './useSettings';
@@ -20,7 +20,6 @@ import { useApi, errorApiRef } from '@backstage/core';
export function useSettings() {
const [{ settings }, dispatch] = useContext(AppContext);
const errorApi = useApi(errorApiRef);
const rehydrate = () => {