Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Configure/Configure.js
Show All 13 Lines | import { | ||||
AntdFormWrapper, | AntdFormWrapper, | ||||
CurrencySelectDropdown, | CurrencySelectDropdown, | ||||
} from '@components/Common/EnhancedInputs'; | } from '@components/Common/EnhancedInputs'; | ||||
import PrimaryButton, { | import PrimaryButton, { | ||||
SecondaryButton, | SecondaryButton, | ||||
SmartButton, | SmartButton, | ||||
} from '@components/Common/PrimaryButton'; | } from '@components/Common/PrimaryButton'; | ||||
import { | import { | ||||
CashLoader, | |||||
ThemedCopyOutlined, | ThemedCopyOutlined, | ||||
ThemedWalletOutlined, | ThemedWalletOutlined, | ||||
ThemedDollarOutlined, | ThemedDollarOutlined, | ||||
} from '@components/Common/CustomIcons'; | } from '@components/Common/CustomIcons'; | ||||
import { ReactComponent as Trashcan } from '@assets/trashcan.svg'; | import { ReactComponent as Trashcan } from '@assets/trashcan.svg'; | ||||
import { ReactComponent as Edit } from '@assets/edit.svg'; | import { ReactComponent as Edit } from '@assets/edit.svg'; | ||||
import { Event } from '@utils/GoogleAnalytics'; | import { Event } from '@utils/GoogleAnalytics'; | ||||
import { ApiError } from '@components/Common/ApiError'; | |||||
const { Panel } = Collapse; | const { Panel } = Collapse; | ||||
const SettingsLink = styled.a` | const SettingsLink = styled.a` | ||||
text-decoration: underline; | text-decoration: underline; | ||||
color: ${props => props.theme.primary}; | color: ${props => props.theme.primary}; | ||||
:visited { | :visited { | ||||
text-decoration: underline; | text-decoration: underline; | ||||
▲ Show 20 Lines • Show All 431 Lines • ▼ Show 20 Lines | return ( | ||||
</Panel> | </Panel> | ||||
</StyledCollapse> | </StyledCollapse> | ||||
)} | )} | ||||
<StyledSpacer /> | <StyledSpacer /> | ||||
<h2> | <h2> | ||||
<ThemedWalletOutlined /> Manage Wallets | <ThemedWalletOutlined /> Manage Wallets | ||||
</h2> | </h2> | ||||
{apiError ? ( | {apiError ? ( | ||||
<> | <ApiError /> | ||||
<CashLoader /> | |||||
<p style={{ color: 'red' }}> | |||||
<b>An error occured on our end. Reconnecting...</b> | |||||
</p> | |||||
</> | |||||
) : ( | ) : ( | ||||
<> | <> | ||||
<PrimaryButton onClick={() => updateSavedWalletsOnCreate()}> | <PrimaryButton onClick={() => updateSavedWalletsOnCreate()}> | ||||
<PlusSquareOutlined /> New Wallet | <PlusSquareOutlined /> New Wallet | ||||
</PrimaryButton> | </PrimaryButton> | ||||
<SecondaryButton onClick={() => openSeedInput(!seedInput)}> | <SecondaryButton onClick={() => openSeedInput(!seedInput)}> | ||||
<ImportOutlined /> Import Wallet | <ImportOutlined /> Import Wallet | ||||
</SecondaryButton> | </SecondaryButton> | ||||
▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines |