style: format all with prettier

This commit is contained in:
Ben Kremer 2022-02-02 17:11:22 +01:00
parent 6626de3b10
commit 2201fed80b
4 changed files with 10 additions and 15 deletions

View File

@ -1,7 +1,7 @@
declare module '*.svg'
declare module '*.png'
declare module '*.jpg'
declare module '*.jpeg'
declare module '*.gif'
declare module '*.bmp'
declare module '*.tiff'
declare module "*.svg";
declare module "*.png";
declare module "*.jpg";
declare module "*.jpeg";
declare module "*.gif";
declare module "*.bmp";
declare module "*.tiff";

View File

@ -164,7 +164,6 @@ class App extends React.Component<any, any> {
try {
await this.loadChainData();
console.log(DEFAULT_RELAY_URL,DEFAULT_PROJECT_ID )
const client = await Client.init({
logger: DEFAULT_LOGGER,
relayUrl: DEFAULT_RELAY_URL,
@ -249,10 +248,7 @@ class App extends React.Component<any, any> {
if (this.state.client.session.topics.length) {
const session = await this.state.client.session.get(this.state.client.session.topics[0]);
const chains = session.state.accounts.map(account =>
account
.split(":")
.slice(0, -1)
.join(":"),
account.split(":").slice(0, -1).join(":"),
);
this.setState({ accounts: session.state.accounts, chains });
this.onSessionConnected(session);

View File

@ -164,7 +164,7 @@ class Modal extends React.Component<ModalProps, ModalState> {
const { offset } = this.state;
const { children, show, opacity } = this.props;
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>
<SHitbox onClick={this.closeModal} />

View File

@ -48,8 +48,7 @@ export const transitions = {
};
export const shadows = {
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)",
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)",
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)",
big: "0 15px 35px 0 rgba(50, 50, 93, 0.06), 0 5px 15px 0 rgba(50, 50, 93, 0.15)",