chore: replace ZCash -> Zcash

This commit is contained in:
George Lima 2018-12-15 18:28:36 -03:00
parent a8b464133c
commit ed8b6b169d
6 changed files with 20 additions and 10 deletions

View File

@ -2,7 +2,7 @@
import { getApp } from '../setup/utils';
describe('ZCash', () => {
describe('Zcash', () => {
const app = getApp();
beforeEach(() => app.start());
@ -11,7 +11,8 @@ describe('ZCash', () => {
});
test('should open the window', () => {
app.client.getWindowCount()
app.client
.getWindowCount()
.then((count: number) => expect(count).toEqual(1));
});
});

View File

@ -3,7 +3,7 @@ import React from 'react';
import styled from 'styled-components';
import { ZCashLogo } from './zcash-logo';
import { ZcashLogo } from './zcash-logo';
import { TextComponent } from './text';
const Wrapper = styled.div`
@ -58,7 +58,7 @@ type Props = {
export const HeaderComponent = ({ title }: Props) => (
<Wrapper>
<LogoWrapper>
<ZCashLogo />
<ZcashLogo />
</LogoWrapper>
<TitleWrapper>
<Title value={title} />

View File

@ -14,13 +14,22 @@ import { DoczWrapper } from '../theme.js'
## Text Input
<Playground>
<DoczWrapper>{() => <InputComponent inputType="input" value="Hello World!" onChange={console.log} />}</DoczWrapper>
<DoczWrapper>
{() => <InputComponent inputType="input" value="Hello World!" onChange={console.log} />}
</DoczWrapper>
</Playground>
## Textarea
<Playground>
<DoczWrapper>
{() => <InputComponent inputType="textarea" value="I'm ZCash Electron Wallet" onChange={console.log} rows={10} />}
{() => (
<InputComponent
inputType="textarea"
value="I'm Zcash Electron Wallet"
onChange={console.log}
rows={10}
/>
)}
</DoczWrapper>
</Playground>

View File

@ -1,7 +1,7 @@
// @flow
import React from 'react';
export const ZCashLogo = () => (
export const ZcashLogo = () => (
<svg xmlns='http://www.w3.org/2000/svg' viewBox='-75 -10 175 175'>
<defs>
<style>{'.a{ fill:#040508; }'}</style>

View File

@ -1,4 +1,4 @@
// @flow
/* eslint-disable-next-line no-console */
export default (...message: Array<*>) => console.log('[ZCash Daemon]', ...message);
export default (...message: Array<*>) => console.log('[Zcash Daemon]', ...message);

View File

@ -85,7 +85,7 @@ app.on('ready', async () => {
if (err || !proc) return zcashLog(err);
/* eslint-disable-next-line */
zcashLog(`ZCash Daemon running. PID: ${proc.pid}`);
zcashLog(`Zcash Daemon running. PID: ${proc.pid}`);
zcashDaemon = proc;
});
@ -97,7 +97,7 @@ app.on('window-all-closed', () => {
});
app.on('before-quit', () => {
if (zcashDaemon) {
zcashLog('Graceful shutdown ZCash Daemon, this may take a few seconds.');
zcashLog('Graceful shutdown Zcash Daemon, this may take a few seconds.');
zcashDaemon.kill('SIGINT');
}
});