Skip to content

Commit

Permalink
Hopefully now images show up in gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzo-Pappalardo committed Nov 1, 2021
1 parent f22924e commit fbeb4ad
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
7 changes: 6 additions & 1 deletion src/pages/Bots/Bots.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ const Bots: React.FC<BotsProps> = (props: BotsProps) => {
return (
<div>
{loading ? (
<img src='loading.gif' className='loading' key='loading' alt='loading' />
<img
src={process.env.PUBLIC_URL + '/loading.gif'}
className='loading'
key='loading'
alt='loading'
/>
) : (
<div className='contents-grid'>
{botsArray.map(
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Channels/Channels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const Channels: React.FC<ChannelProps> = (props: ChannelProps) => {
return (
<>
{loading ? (
<img src='loading.gif' className='loading' alt='loading' />
<img src={process.env.PUBLIC_URL + '/loading.gif'} className='loading' alt='loading' />
) : (
<div className='contents-grid'>
{channelsArray.map(
Expand Down
9 changes: 7 additions & 2 deletions src/pages/Groups/Bachelor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const Bachelor: React.FC<BachelorProps> = (props: BachelorProps) => {
newGroupEntry.description = data.description;

if (data.image_link === '') {
newGroupEntry.pictureURL = 'telegram.svg';
newGroupEntry.pictureURL = process.env.PUBLIC_URL + '/telegram.svg';
} else {
const tmpPic: string = data.image_link;
newGroupEntry.pictureURL = tmpPic.substring(1);
Expand Down Expand Up @@ -119,7 +119,12 @@ const Bachelor: React.FC<BachelorProps> = (props: BachelorProps) => {
return (
<div>
{loading ? (
<img src='loading.gif' className='loading' key='loading' alt='loading' />
<img
src={process.env.PUBLIC_URL + '/loading.gif'}
className='loading'
key='loading'
alt='loading'
/>
) : (
<div>
{arrays.map((specificArray) => (
Expand Down
9 changes: 7 additions & 2 deletions src/pages/Groups/Master.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const Master: React.FC<MasterProps> = (props: MasterProps) => {
newGroupEntry.description = data.description;

if (data.image_link === '') {
newGroupEntry.pictureURL = 'telegram.svg';
newGroupEntry.pictureURL = process.env.PUBLIC_URL + '/telegram.svg';
} else {
const tmpPic: string = data.image_link;
newGroupEntry.pictureURL = tmpPic.substring(1);
Expand Down Expand Up @@ -104,7 +104,12 @@ const Master: React.FC<MasterProps> = (props: MasterProps) => {
return (
<div>
{loading ? (
<img src='loading.gif' className='loading' key='loading' alt='loading' />
<img
src={process.env.PUBLIC_URL + '/loading.gif'}
className='loading'
key='loading'
alt='loading'
/>
) : (
<div>
{arrays.map((specificArray) => (
Expand Down

0 comments on commit fbeb4ad

Please sign in to comment.