style: format all with prettier
This commit is contained in:
parent
6626de3b10
commit
2201fed80b
14
dapps/react-dapp-v2/images.d.ts
vendored
14
dapps/react-dapp-v2/images.d.ts
vendored
@ -1,7 +1,7 @@
|
|||||||
declare module '*.svg'
|
declare module "*.svg";
|
||||||
declare module '*.png'
|
declare module "*.png";
|
||||||
declare module '*.jpg'
|
declare module "*.jpg";
|
||||||
declare module '*.jpeg'
|
declare module "*.jpeg";
|
||||||
declare module '*.gif'
|
declare module "*.gif";
|
||||||
declare module '*.bmp'
|
declare module "*.bmp";
|
||||||
declare module '*.tiff'
|
declare module "*.tiff";
|
||||||
|
@ -164,7 +164,6 @@ class App extends React.Component<any, any> {
|
|||||||
try {
|
try {
|
||||||
await this.loadChainData();
|
await this.loadChainData();
|
||||||
|
|
||||||
console.log(DEFAULT_RELAY_URL,DEFAULT_PROJECT_ID )
|
|
||||||
const client = await Client.init({
|
const client = await Client.init({
|
||||||
logger: DEFAULT_LOGGER,
|
logger: DEFAULT_LOGGER,
|
||||||
relayUrl: DEFAULT_RELAY_URL,
|
relayUrl: DEFAULT_RELAY_URL,
|
||||||
@ -249,10 +248,7 @@ class App extends React.Component<any, any> {
|
|||||||
if (this.state.client.session.topics.length) {
|
if (this.state.client.session.topics.length) {
|
||||||
const session = await this.state.client.session.get(this.state.client.session.topics[0]);
|
const session = await this.state.client.session.get(this.state.client.session.topics[0]);
|
||||||
const chains = session.state.accounts.map(account =>
|
const chains = session.state.accounts.map(account =>
|
||||||
account
|
account.split(":").slice(0, -1).join(":"),
|
||||||
.split(":")
|
|
||||||
.slice(0, -1)
|
|
||||||
.join(":"),
|
|
||||||
);
|
);
|
||||||
this.setState({ accounts: session.state.accounts, chains });
|
this.setState({ accounts: session.state.accounts, chains });
|
||||||
this.onSessionConnected(session);
|
this.onSessionConnected(session);
|
||||||
|
@ -164,7 +164,7 @@ class Modal extends React.Component<ModalProps, ModalState> {
|
|||||||
const { offset } = this.state;
|
const { offset } = this.state;
|
||||||
const { children, show, opacity } = this.props;
|
const { children, show, opacity } = this.props;
|
||||||
return (
|
return (
|
||||||
<SLightbox show={show} offset={offset} opacity={opacity} ref={(c) => (this.lightbox = c)}>
|
<SLightbox show={show} offset={offset} opacity={opacity} ref={c => (this.lightbox = c)}>
|
||||||
<SModalContainer>
|
<SModalContainer>
|
||||||
<SHitbox onClick={this.closeModal} />
|
<SHitbox onClick={this.closeModal} />
|
||||||
|
|
||||||
|
@ -48,8 +48,7 @@ export const transitions = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const shadows = {
|
export const shadows = {
|
||||||
soft:
|
soft: "0 4px 6px 0 rgba(50, 50, 93, 0.11), 0 1px 3px 0 rgba(0, 0, 0, 0.08), inset 0 0 1px 0 rgba(0, 0, 0, 0.06)",
|
||||||
"0 4px 6px 0 rgba(50, 50, 93, 0.11), 0 1px 3px 0 rgba(0, 0, 0, 0.08), inset 0 0 1px 0 rgba(0, 0, 0, 0.06)",
|
|
||||||
medium:
|
medium:
|
||||||
"0 3px 6px 0 rgba(0, 0, 0, 0.06), 0 0 1px 0 rgba(50, 50, 93, 0.02), 0 5px 10px 0 rgba(59, 59, 92, 0.08)",
|
"0 3px 6px 0 rgba(0, 0, 0, 0.06), 0 0 1px 0 rgba(50, 50, 93, 0.02), 0 5px 10px 0 rgba(59, 59, 92, 0.08)",
|
||||||
big: "0 15px 35px 0 rgba(50, 50, 93, 0.06), 0 5px 15px 0 rgba(50, 50, 93, 0.15)",
|
big: "0 15px 35px 0 rgba(50, 50, 93, 0.06), 0 5px 15px 0 rgba(50, 50, 93, 0.15)",
|
||||||
|
Loading…
Reference in New Issue
Block a user