Skip to content

Commit

Permalink
Move UndoTextInput from buffers/ui to shared
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoran committed Mar 15, 2024
1 parent a500124 commit bbe7f54
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __tests__/usecase/settings/UploadSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import UploadSettings from '../../../src/usecase/settings/UploadSettings';
import { configureStore } from '@reduxjs/toolkit';
import { reducer } from '../../../src/store';

jest.mock('../../../src/usecase/buffers/ui/UndoTextInput', () => 'TextInput');
jest.mock('../../../src/usecase/shared/UndoTextInput', () => 'TextInput');

describe('UploadSettings', () => {
it('stores the configured settings', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/usecase/buffers/ui/BufferContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { renderWeechatFormat } from '../../../lib/weechat/color-formatter';
import { WeeChatProtocol } from '../../../lib/weechat/parser';
import { StoreState } from '../../../store';
import Buffer from './Buffer';
import UndoTextInput from './UndoTextInput';
import UndoTextInput from '../../shared/UndoTextInput';
import UploadButton from './UploadButton';

const connector = connect((state: StoreState, { bufferId }: OwnProps) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/usecase/login/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SafeAreaView } from 'react-native-safe-area-context';
import { ConnectedProps, connect } from 'react-redux';
import { ConnectionError } from '../../lib/weechat/connection';
import { StoreState } from '../../store';
import UndoTextInput from '../buffers/ui/UndoTextInput';
import UndoTextInput from '../shared/UndoTextInput';
import { styles } from '../settings/SettingsNavigator';
import { setConnectionInfoAction } from '../../store/actions';

Expand Down
2 changes: 1 addition & 1 deletion src/usecase/settings/UploadSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { SafeAreaView } from 'react-native-safe-area-context';
import { ConnectedProps, connect } from 'react-redux';
import { StoreState } from '../../store';
import UndoTextInput from '../buffers/ui/UndoTextInput';
import UndoTextInput from '../shared/UndoTextInput';
import { styles } from './SettingsNavigator';
import { setMediaUploadOptionsAction } from '../../store/actions';

Expand Down
File renamed without changes.

0 comments on commit bbe7f54

Please sign in to comment.