Skip to content

Commit

Permalink
fix(build): set import names correct
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1p committed Feb 6, 2020
1 parent 8c6f2d3 commit de2af61
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions src/Ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ import io from 'socket.io-client';
import './assets/css/ui.css';
import './assets/figma-ui/main.min.css';
// components
import Notifications from './components/notifications';
import Notifications from './components/Notifications';
// shared
import { DEFAULT_SERVER_URL } from './shared/constants';
import { ConnectionEnum } from './shared/interfaces';
import { SocketProvider } from './shared/socketprovider';
import { SocketProvider } from './shared/SocketProvider';
import { state, view } from './shared/state';
import { sendMainMessage } from './shared/utils';
// views
import ChatView from './views/chat';
import ConnectionView from './views/connection';
import MinimizedView from './views/minimized';
import SettingsView from './views/settings';
import UserListView from './views/userlist';
import ChatView from './views/Chat';
import ConnectionView from './views/Connection';
import MinimizedView from './views/Minimized';
import SettingsView from './views/Settings';
import UserListView from './views/UserList';

onmessage = message => {
if (message.data.pluginMessage) {
Expand Down
8 changes: 4 additions & 4 deletions src/views/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { store } from 'react-easy-state';
import { Link, Redirect, useHistory } from 'react-router-dom';
import styled from 'styled-components';
// components
import Header from '../components/header';
import Message from '../components/message';
import Chatbar from '../components/chatbar';
import Header from '../components/Header';
import Message from '../components/Message';
import Chatbar from '../components/Chatbar';
//shared
import { IS_PROD, MAX_MESSAGES } from '../shared/constants';
import { ConnectionEnum } from '../shared/interfaces';
import { withSocketContext } from '../shared/socketprovider';
import { withSocketContext } from '../shared/SocketProvider';
import { state, view } from '../shared/state';
import { SharedIcon } from '../shared/style';
import { sendMainMessage } from '../shared/utils';
Expand Down
2 changes: 1 addition & 1 deletion src/views/Minimized.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { FunctionComponent } from 'react';
import { Redirect } from 'react-router-dom';
import styled from 'styled-components';
import Header from '../components/header';
import Header from '../components/Header';
import { ConnectionEnum } from '../shared/interfaces';
import { state, view } from '../shared/state';
import { SharedIcon } from '../shared/style';
Expand Down
4 changes: 2 additions & 2 deletions src/views/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React, { FunctionComponent, useEffect } from 'react';
import { store } from 'react-easy-state';
import { useHistory } from 'react-router-dom';
import styled from 'styled-components';
import Header from '../components/header';
import Header from '../components/Header';
import { ConnectionEnum } from '../shared/interfaces';
import { withSocketContext } from '../shared/socketprovider';
import { withSocketContext } from '../shared/SocketProvider';
import { state, view } from '../shared/state';
import { colors, DEFAULT_SERVER_URL } from '../shared/constants';
import { version, repository } from '../../package.json';
Expand Down
2 changes: 1 addition & 1 deletion src/views/UserList.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { FunctionComponent } from 'react';
import styled from 'styled-components';
import Header from '../components/header';
import Header from '../components/Header';
import { state, view } from '../shared/state';

const UserListView: FunctionComponent = () => {
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = (env, argv) => ({
minimizer: [new TerserPlugin()]
},
entry: {
ui: './src/ui.tsx',
ui: './src/Ui.tsx',
code: './src/code.ts'
},
module: {
Expand Down

0 comments on commit de2af61

Please sign in to comment.