chore: replace ZCash -> Zcash
This commit is contained in:
parent
a8b464133c
commit
ed8b6b169d
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import { getApp } from '../setup/utils';
|
import { getApp } from '../setup/utils';
|
||||||
|
|
||||||
describe('ZCash', () => {
|
describe('Zcash', () => {
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
|
|
||||||
beforeEach(() => app.start());
|
beforeEach(() => app.start());
|
||||||
|
@ -11,7 +11,8 @@ describe('ZCash', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should open the window', () => {
|
test('should open the window', () => {
|
||||||
app.client.getWindowCount()
|
app.client
|
||||||
|
.getWindowCount()
|
||||||
.then((count: number) => expect(count).toEqual(1));
|
.then((count: number) => expect(count).toEqual(1));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
import { ZCashLogo } from './zcash-logo';
|
import { ZcashLogo } from './zcash-logo';
|
||||||
import { TextComponent } from './text';
|
import { TextComponent } from './text';
|
||||||
|
|
||||||
const Wrapper = styled.div`
|
const Wrapper = styled.div`
|
||||||
|
@ -58,7 +58,7 @@ type Props = {
|
||||||
export const HeaderComponent = ({ title }: Props) => (
|
export const HeaderComponent = ({ title }: Props) => (
|
||||||
<Wrapper>
|
<Wrapper>
|
||||||
<LogoWrapper>
|
<LogoWrapper>
|
||||||
<ZCashLogo />
|
<ZcashLogo />
|
||||||
</LogoWrapper>
|
</LogoWrapper>
|
||||||
<TitleWrapper>
|
<TitleWrapper>
|
||||||
<Title value={title} />
|
<Title value={title} />
|
||||||
|
|
|
@ -14,13 +14,22 @@ import { DoczWrapper } from '../theme.js'
|
||||||
## Text Input
|
## Text Input
|
||||||
|
|
||||||
<Playground>
|
<Playground>
|
||||||
<DoczWrapper>{() => <InputComponent inputType="input" value="Hello World!" onChange={console.log} />}</DoczWrapper>
|
<DoczWrapper>
|
||||||
|
{() => <InputComponent inputType="input" value="Hello World!" onChange={console.log} />}
|
||||||
|
</DoczWrapper>
|
||||||
</Playground>
|
</Playground>
|
||||||
|
|
||||||
## Textarea
|
## Textarea
|
||||||
|
|
||||||
<Playground>
|
<Playground>
|
||||||
<DoczWrapper>
|
<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>
|
</DoczWrapper>
|
||||||
</Playground>
|
</Playground>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// @flow
|
// @flow
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
export const ZCashLogo = () => (
|
export const ZcashLogo = () => (
|
||||||
<svg xmlns='http://www.w3.org/2000/svg' viewBox='-75 -10 175 175'>
|
<svg xmlns='http://www.w3.org/2000/svg' viewBox='-75 -10 175 175'>
|
||||||
<defs>
|
<defs>
|
||||||
<style>{'.a{ fill:#040508; }'}</style>
|
<style>{'.a{ fill:#040508; }'}</style>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
/* eslint-disable-next-line no-console */
|
/* eslint-disable-next-line no-console */
|
||||||
export default (...message: Array<*>) => console.log('[ZCash Daemon]', ...message);
|
export default (...message: Array<*>) => console.log('[Zcash Daemon]', ...message);
|
||||||
|
|
|
@ -85,7 +85,7 @@ app.on('ready', async () => {
|
||||||
if (err || !proc) return zcashLog(err);
|
if (err || !proc) return zcashLog(err);
|
||||||
|
|
||||||
/* eslint-disable-next-line */
|
/* eslint-disable-next-line */
|
||||||
zcashLog(`ZCash Daemon running. PID: ${proc.pid}`);
|
zcashLog(`Zcash Daemon running. PID: ${proc.pid}`);
|
||||||
|
|
||||||
zcashDaemon = proc;
|
zcashDaemon = proc;
|
||||||
});
|
});
|
||||||
|
@ -97,7 +97,7 @@ app.on('window-all-closed', () => {
|
||||||
});
|
});
|
||||||
app.on('before-quit', () => {
|
app.on('before-quit', () => {
|
||||||
if (zcashDaemon) {
|
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');
|
zcashDaemon.kill('SIGINT');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue