Skip to content

Commit

Permalink
Remove kea exports
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonStoltz committed Nov 16, 2020
1 parent a40fcb9 commit 505a9d3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jest.mock('../../../shared/flash_messages', () => ({
}));
import { setQueuedSuccessMessage, flashAPIErrors } from '../../../shared/flash_messages';

import { DocumentDetailLogic, DocumentDetailLogicValues } from './document_detail_logic';
import { DocumentDetailLogic } from './document_detail_logic';

describe('DocumentDetailLogic', () => {
const DEFAULT_VALUES: DocumentDetailLogicValues = {
const DEFAULT_VALUES = {
dataLoading: true,
fields: [],
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import { EngineLogic } from '../engine';
import { flashAPIErrors, setQueuedSuccessMessage } from '../../../shared/flash_messages';
import { FieldDetails } from './types';

export interface DocumentDetailLogicValues {
interface DocumentDetailLogicValues {
dataLoading: boolean;
fields: FieldDetails[];
}

export interface DocumentDetailLogicActions {
interface DocumentDetailLogicActions {
setFields(fields: FieldDetails[]): { fields: FieldDetails[] };
deleteDocument(documentId: string): { documentId: string };
getDocumentDetails(documentId: string): { documentId: string };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

import { resetContext } from 'kea';

import { DocumentsLogic, DocumentsLogicValues } from './documents_logic';
import { DocumentsLogic } from './documents_logic';

describe('DocumentsLogic', () => {
const DEFAULT_VALUES: DocumentsLogicValues = {
const DEFAULT_VALUES = {
isDocumentCreationOpen: false,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

import { kea, MakeLogicType } from 'kea';

export interface DocumentsLogicValues {
interface DocumentsLogicValues {
isDocumentCreationOpen: boolean;
}

export interface DocumentsLogicActions {
interface DocumentsLogicActions {
closeDocumentCreation(): void;
openDocumentCreation(): void;
}
Expand Down

0 comments on commit 505a9d3

Please sign in to comment.