Skip to content

Commit

Permalink
Fix linting & tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sggerard committed Nov 19, 2024
1 parent 02b014f commit f4ab31e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion frontend/src/app/graphql.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { APOLLO_OPTIONS, ApolloModule } from 'apollo-angular';
import { HttpLink } from 'apollo-angular/http';
import { NgModule } from '@angular/core';
import { ApolloClientOptions, InMemoryCache } from '@apollo/client/core';
import { environment } from 'environments/environment';

const uri = "/graphql"
export function createApollo(httpLink: HttpLink): ApolloClientOptions<any> {
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/app/home/home.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="hero-banner home-banner">
<div class="container">
<div class="container__inner-container">
<div class="hero-banner__content">
<div class="hero-banner__content" *ngIf="homeData">
<h1 id="pgTitle">{{homeData.Title}}</h1>
<p>{{homeData.Description}}</p>
<div class="hero-banner__content--cta-btns">
Expand All @@ -21,11 +21,11 @@ <h1 id="pgTitle">{{homeData.Title}}</h1>

<div class="row">

<div class="col-lg-8">
<div class="col-lg-8" *ngIf="homeData">
<section class="about-info mb-0" [innerHTML]="homeData.About"></section>
</div>

<div class="col-lg-4" *ngIf="fastFacts.length > 0">
<div class="col-lg-4" *ngIf="fastFacts && fastFacts.length > 0">
<section class="fast-facts">
<h4>Fast Facts about the Mining Industry in British Columbia</h4>
<ul class="row mb-0" *ngFor="let facts of fastFacts">
Expand All @@ -42,7 +42,7 @@ <h4>Fast Facts about the Mining Industry in British Columbia</h4>
</div>
</div>

<div class="fb-container bg-faded" *ngIf="homeData.Mining_blocks">
<div class="fb-container bg-faded" *ngIf="homeData && homeData.Mining_blocks">
<section class="container">
<h2>Mining in British Columbia</h2>
<div class="row feature-blocks">
Expand All @@ -68,7 +68,7 @@ <h3>Find Mines in B.C.</h3>
</section>
</div>

<div class="fb-container" id="bottom" *ngIf="homeData.Processes_blocks">
<div class="fb-container" id="bottom" *ngIf="homeData && homeData.Processes_blocks">
<section class="container mt-0">
<h2>Our Processes &amp; Procedures</h2>
<div class="row">
Expand Down
1 change: 0 additions & 1 deletion frontend/src/app/page/page.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { afterRender, Component, OnInit, ViewEncapsulation } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Page } from '../models/content/page';
import { SafeHtmlPipe } from '@app/pipes/safe-html.pipe';

@Component({
selector: 'app-page',
Expand Down

0 comments on commit f4ab31e

Please sign in to comment.