Skip to content

Commit 802fff3

Browse files
committed
refactor: separate base components into their own folder
1 parent 2106e55 commit 802fff3

35 files changed

+35
-41
lines changed

app/src/__stories__/AlertContainer.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { useStore } from 'store';
3+
import { Button } from 'components/base';
34
import AlertContainer from 'components/common/AlertContainer';
4-
import { Button } from 'components/common/base';
55

66
export default {
77
title: 'Components/Alerts',

app/src/__stories__/StoryWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { BalanceMode, Unit } from 'util/constants';
44
import { sampleApiResponses } from 'util/tests/sampleData';
55
import { createStore, StoreProvider } from 'store';
66
import { PersistentSettings } from 'store/stores/settingsStore';
7-
import { Background } from 'components/common/base';
7+
import { Background } from 'components/base';
88
import { ThemeProvider } from 'components/theme';
99

1010
// mock the GRPC client to return sample data instead of making an actual request

app/src/components/NodeStatus.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React from 'react';
22
import { observer } from 'mobx-react-lite';
33
import { usePrefixedTranslation } from 'hooks';
44
import { useStore } from 'store';
5-
import { HeaderFour, Jumbo, Small } from 'components/common/text';
6-
import { Bitcoin, Bolt } from './common/icons';
5+
import { HeaderFour, Jumbo, Small } from 'components/base';
6+
import { Bitcoin, Bolt } from './base';
77
import Tip from './common/Tip';
88
import Unit from './common/Unit';
99
import { styled } from './theme';
File renamed without changes.

app/src/components/base/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export * from './grid';
2+
export * from './icons';
3+
export * from './shared';
4+
export * from './text';
File renamed without changes.

app/src/components/common/AlertContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { observer } from 'mobx-react-lite';
55
import { Alert } from 'types/state';
66
import { useStore } from 'store';
77
import { styled } from 'components/theme';
8-
import { Close } from './icons';
8+
import { Close } from '../base';
99

1010
const Styled = {
1111
Body: styled.div`

app/src/components/common/Checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useCallback } from 'react';
22
import { styled } from 'components/theme';
3-
import { Check } from './icons';
3+
import { Check } from '../base';
44

55
const Styled = {
66
Box: styled.span<{ disabled?: boolean }>`

0 commit comments

Comments
 (0)