Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of warnings and errors in terminal and browser console #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/assets/img/cloud-outline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/img/cz-flag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/img/delivery-flow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/img/karmen-logo-rect.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/img/karmen-logo-stroked.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/img/karmen-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/img/karmen-plus-strawberry.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/assets/img/pill-outline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions src/components/product-detail/karmen-cloud.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"

import { Link, useStaticQuery, graphql } from "gatsby"
import { useStaticQuery, graphql } from "gatsby"

import { FormattedMessage } from "react-intl"

Expand All @@ -19,7 +19,7 @@ const ProductBlockKarmenCloud = ({ props }) => {
}
}
`)
const manualLink = "https://docs.karmen.tech/#/pripojeni-octoprintu-do-karmen-cloudu"
const manualUrl = "https://docs.karmen.tech/#/pripojeni-octoprintu-do-karmen-cloudu"
return (
<div>
<div className="product-detail__hero">
Expand Down Expand Up @@ -62,22 +62,22 @@ const ProductBlockKarmenCloud = ({ props }) => {
>
Přihlásit se
</a>
<Link
to={cloudRegister}
<a
href={cloudRegister}
className="product-detail__buy-button button button--outlineBlack"
>
<FormattedMessage
id="product-detail-cloud.register_button"
defaultMessage="Registrovat se"
/>
</Link>
</a>
<div className="product-detail-circle"></div>
<div className="products-list__price">
<FormattedMessage
id="pricing-block.manual"
defaultMessage="{manualLink}"
values={{
manualLink: <a href={manualLink}>Návod jak připojit Octoprint</a>
manualLink: <a href={manualUrl}>Návod jak připojit Octoprint</a>
}}
/>
</div>
Expand Down
9 changes: 1 addition & 8 deletions src/components/product-detail/karmen-pill.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"
import { useStaticQuery, graphql, Link } from "gatsby"
import { FormattedMessage, useIntl } from "react-intl"
import { FormattedMessage } from "react-intl"

import "react-multi-carousel/lib/styles.css"

Expand All @@ -9,8 +9,6 @@ import { BackgroundImage } from "components/image"
import KarmenPillGalleryCarousel from "components/product-detail/karmen-pill-gallery"

import czFlag from "assets/img/cz-flag.svg"
import iconPackage from "assets/img/icon-package.png"
import iconTruck from "assets/img/icon-truck.png"

import logoCura from "assets/img/logo-cura.png"
import logoPrusaSlicer from "assets/img/logo-prusa-slicer.png"
Expand All @@ -21,11 +19,6 @@ import logoIkem from "assets/img/logo-ikem.png"
import logoTrebesin from "assets/img/logo-prumyslovka-trebesin.png"

const ProductBlockKarmenPill = ({ props }) => {
const intl = useIntl()
const buyPillLink =
intl.locale === "cs"
? "/cs/koupit/"
: "/en/koupit/"
const data = useStaticQuery(graphql`
query {
site {
Expand Down
Loading