Skip to content

Commit

Permalink
fix wallet adapter for solana
Browse files Browse the repository at this point in the history
  • Loading branch information
jdnichollsc committed Feb 12, 2024
1 parent b6fc77e commit 06c5b8f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/webapp/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { ApplicationConfig } from '@angular/core';
import { provideRouter } from '@angular/router';
import { appRoutes } from './app.routes';
import { provideClientHydration } from '@angular/platform-browser';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import { provideWalletAdapter } from '@heavy-duty/wallet-adapter';

import { appRoutes } from './app.routes';

export const appConfig: ApplicationConfig = {
providers: [provideClientHydration(), provideRouter(appRoutes), provideAnimationsAsync()],
providers: [provideClientHydration(), provideRouter(appRoutes), provideAnimationsAsync(), provideWalletAdapter()],
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<section class="min-h-screen flex flex-col">
<projectx-header [title]="title">
<div right>
<hd-wallet-multi-button></hd-wallet-multi-button>
</div>
</projectx-header>
<main class="flex flex-grow">
<ng-content></ng-content>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
import { Component, Input } from '@angular/core';
import { HeaderComponent, FooterComponent } from '@projectx/ui';
import {
HdObscureAddressPipe,
HdWalletAdapterDirective,
} from '@heavy-duty/wallet-adapter-cdk';
import { HdWalletMultiButtonComponent } from '@heavy-duty/wallet-adapter-material';

@Component({
imports: [
HeaderComponent,
FooterComponent,
HdWalletAdapterDirective,
HdObscureAddressPipe,
HdWalletMultiButtonComponent,
],
selector: 'webapp-layout-container',
templateUrl: './layout-container.component.html',
Expand Down

0 comments on commit 06c5b8f

Please sign in to comment.