Skip to content

Commit

Permalink
path corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
jithendraprasad9999 committed Nov 29, 2020
1 parent f4aee05 commit 59c76d4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/app/components/PreviewCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ UserPreviewCard.defaultProps = {
// DataSourcePreviewCard

export function DataSourcePreviewCard({ dataSource, withLink, children, ...props }) {
const imageUrl = `static/images/db-logos/${dataSource.type}.png`;
const imageUrl = `/static/images/db-logos/${dataSource.type}.png`;
const title = withLink ? <Link href={"data_sources/" + dataSource.id}>{dataSource.name}</Link> : dataSource.name;
return (
<PreviewCard {...props} imageUrl={imageUrl} title={title}>
Expand Down
2 changes: 1 addition & 1 deletion client/app/components/empty-state/EmptyState.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function EmptyState({
];

const stepsItems = getStepsItems ? getStepsItems(defaultStepsItems) : defaultStepsItems;
const imageSource = illustrationPath ? illustrationPath : "static/images/illustrations/" + illustration + ".svg";
const imageSource = illustrationPath ? illustrationPath : "/static/images/illustrations/" + illustration + ".svg";

return (
<div className="empty-state-wrapper">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import PropTypes from "prop-types";
import React from "react";

export function QuerySourceTypeIcon(props) {
return <img src={`static/images/db-logos/${props.type}.png`} width="20" alt={props.alt} />;
return <img src={`/static/images/db-logos/${props.type}.png`} width="20" alt={props.alt} />;
}

QuerySourceTypeIcon.propTypes = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function EmptyState({ title, message, refreshButton }) {
<div className="query-results-empty-state">
<div className="empty-state-content">
<div>
<img src="static/images/illustrations/no-query-results.svg" alt="No Query Results Illustration" />
<img src="/static/images/illustrations/no-query-results.svg" alt="No Query Results Illustration" />
</div>
<h3>{title}</h3>
<div className="m-b-20">{message}</div>
Expand Down
2 changes: 1 addition & 1 deletion client/app/services/data-source.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { fetchDataFromJob } from "@/services/query-result";

export const SCHEMA_NOT_SUPPORTED = 1;
export const SCHEMA_LOAD_ERROR = 2;
export const IMG_ROOT = "static/images/db-logos";
export const IMG_ROOT = "/static/images/db-logos";

function mapSchemaColumnsToObject(columns) {
return map(columns, column => (isObject(column) ? column : { name: column }));
Expand Down
2 changes: 1 addition & 1 deletion client/app/services/destination.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { axios } from "@/services/axios";

export const IMG_ROOT = "static/images/destinations";
export const IMG_ROOT = "/static/images/destinations";

const Destination = {
query: () => axios.get("api/destinations"),
Expand Down

0 comments on commit 59c76d4

Please sign in to comment.