Skip to content

Commit

Permalink
feat(relative path): update import path for images
Browse files Browse the repository at this point in the history
  • Loading branch information
harryandriyan committed May 10, 2022
1 parent 6fabb30 commit 2ea647b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions admin-ui/app/layout/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ const favIcons = [
{
rel: "icon",
type: "image/x-icon",
href: require("./../images/favicons/favicon.ico"),
href: require("Images/favicons/favicon.ico"),
},

{
rel: "apple-touch-icon",
sizes: "180x180",
href: require("./../images/favicons/apple-touch-icon.png"),
href: require("Images/favicons/apple-touch-icon.png"),
},

{
rel: "icon",
type: "image/png",
sizes: "32x32",
href: require("./../images/favicons/favicon-32x32.png"),
href: require("Images/favicons/favicon-32x32.png"),
},
{
rel: "icon",
type: "image/png",
sizes: "16x16",
href: require("./../images/favicons/favicon-16x16.png"),
href: require("Images/favicons/favicon-16x16.png"),
},
]

Expand Down
4 changes: 2 additions & 2 deletions admin-ui/app/routes/components/LogoThemed/LogoThemed.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import classNames from 'classnames'
import { ThemeConsumer } from 'Components/Theme'

const logos = {
'default': require('./../../../images/logos/logo192.png'),
'primary': require('./../../../images/logos/logo192.png')
'default': require('Images/logos/logo192.png'),
'primary': require('Images/logos/logo192.png')
}

const getLogoUrl = () => {
Expand Down
2 changes: 1 addition & 1 deletion admin-ui/app/utils/LicenseScreens/ApiKey.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from 'react'
import { checkUserApi, checkUserLicenceKey } from '../../redux/actions'
import logo from './../../images/logos/logo192.png'
import logo from 'Images/logos/logo192.png'
import { useDispatch, useSelector } from 'react-redux'
import './style.css'

Expand Down
2 changes: 1 addition & 1 deletion admin-ui/app/utils/ViewRedirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function ViewRedirect({
width: '100%',
height: '100%',
}}
src={require('../images/gif/npe-redirecting.gif')}
src={require('Images/gif/npe-redirecting.gif')}
alt="loading..."
/>
{!backendIsUp && (
Expand Down

0 comments on commit 2ea647b

Please sign in to comment.