Skip to content

Commit

Permalink
Merge pull request #63 from dragoni7/62-fix-image-path
Browse files Browse the repository at this point in the history
Moved assets to public
  • Loading branch information
dragoni7 authored Sep 12, 2024
2 parents 5a7be01 + 766e6e6 commit 99f782d
Show file tree
Hide file tree
Showing 25 changed files with 20 additions and 20 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion src/app/routes/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
import SubclassCustomizationWrapper from '../../features/subclass/SubclassCustomizationWrapper';
import { updateManifest } from '../../lib/bungie_api/manifest';
import LoadoutCustomization from '../../components/LoadoutCustomization';
import greyBackground from '../../assets/grey.png';
import greyBackground from '/assets/grey.png';
import ExoticSelector from '../../features/armor-optimization/ExoticSelector';
import { DAMAGE_TYPE } from '../../lib/bungie_api/constants';
import { decodeLoadout } from '../../features/loadouts/util/loadout-encoder';
Expand Down
2 changes: 1 addition & 1 deletion src/components/SingleDiamondButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const SingleDiamondButton: React.FC<SingleDiamondButtonProps> = ({
}}
>
<img
src={`src/assets/subclass-icons/${damageType}.png`}
src={`/assets/subclass-icons/${damageType}.png`}
alt={String(damageType)}
className="diamond-icon"
style={{ filter: damageType in subclasses ? 'none' : 'grayscale(100%)' }}
Expand Down
12 changes: 6 additions & 6 deletions src/features/armor-optimization/NumberBoxes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ const StatIcon = styled('img')({
});

const statIcons: Record<string, string> = {
mobility: 'src/assets/mob.png',
resilience: 'src/assets/res.png',
recovery: 'src/assets/rec.png',
discipline: 'src/assets/disc.png',
intellect: 'src/assets/int.png',
strength: 'src/assets/str.png',
mobility: '/assets/mob.png',
resilience: '/assets/res.png',
recovery: '/assets/rec.png',
discipline: '/assets/disc.png',
intellect: '/assets/int.png',
strength: '/assets/str.png',
};

const NumberBoxes: React.FC = () => {
Expand Down
12 changes: 6 additions & 6 deletions src/features/armor-optimization/StatsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ const StatsTable: React.FC<StatsTableProps> = ({ permutations, onPermutationClic
}, []);

const statIcons: Record<keyof FilteredPermutation['modsArray'], string> = {
mobility: 'src/assets/mob.png',
resilience: 'src/assets/res.png',
recovery: 'src/assets/rec.png',
discipline: 'src/assets/disc.png',
intellect: 'src/assets/int.png',
strength: 'src/assets/str.png',
mobility: '/assets/mob.png',
resilience: '/assets/res.png',
recovery: '/assets/rec.png',
discipline: '/assets/disc.png',
intellect: '/assets/int.png',
strength: '/assets/str.png',
};

const formatArmorStats = (armor: DestinyArmor) => {
Expand Down
12 changes: 6 additions & 6 deletions src/features/loadouts/components/ShareLoadout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ const ArrowContainer = styled(Box)(({ theme }) => ({
}));

const statIcons: Record<StatName, string> = {
mobility: 'src/assets/mob.png',
resilience: 'src/assets/res.png',
recovery: 'src/assets/rec.png',
discipline: 'src/assets/disc.png',
intellect: 'src/assets/int.png',
strength: 'src/assets/str.png',
mobility: '/assets/mob.png',
resilience: '/assets/res.png',
recovery: '/assets/rec.png',
discipline: '/assets/disc.png',
intellect: '/assets/int.png',
strength: '/assets/str.png',
};

const selectLoadoutState = createSelector(
Expand Down

0 comments on commit 99f782d

Please sign in to comment.