Browse Source

Move icons to public directory. Fixes #2573

pull/2556/head
Gabe Kangas 3 years ago
parent
commit
48e99ff37c
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 4
      web/components/admin/MainLayout.tsx
  2. 7
      web/components/modals/AuthModal/AuthModal.tsx
  3. 0
      web/public/img/fediverse-black.png
  4. 0
      web/public/img/indieauth.png

4
web/components/admin/MainLayout.tsx

@ -31,8 +31,6 @@ import { TEXTFIELD_PROPS_STREAM_TITLE } from '../../utils/config-constants'; @@ -31,8 +31,6 @@ import { TEXTFIELD_PROPS_STREAM_TITLE } from '../../utils/config-constants';
import { ComposeFederatedPost } from './ComposeFederatedPost';
import { UpdateArgs } from '../../types/config-section';
import FediverseIcon from '../../assets/images/fediverse-black.png';
export type MainLayoutProps = {
children: ReactNode;
};
@ -206,7 +204,7 @@ export const MainLayout: FC<MainLayoutProps> = ({ children }) => { @@ -206,7 +204,7 @@ export const MainLayout: FC<MainLayoutProps> = ({ children }) => {
icon: (
<img
alt="fediverse icon"
src={FediverseIcon.src}
src="/img/fediverse-black.png"
width="17rem"
style={{ opacity: 0.6, position: 'relative', top: '-1px' }}
/>

7
web/components/modals/AuthModal/AuthModal.tsx

@ -4,9 +4,6 @@ import { FC } from 'react'; @@ -4,9 +4,6 @@ import { FC } from 'react';
import { IndieAuthModal } from '../IndieAuthModal/IndieAuthModal';
import { FediAuthModal } from '../FediAuthModal/FediAuthModal';
import FediverseIcon from '../../../assets/images/fediverse-black.png';
import IndieAuthIcon from '../../../assets/images/indieauth.png';
import styles from './AuthModal.module.scss';
import {
currentUserAtom,
@ -35,7 +32,7 @@ export const AuthModal: FC<AuthModalProps> = ({ forceTabs }) => { @@ -35,7 +32,7 @@ export const AuthModal: FC<AuthModalProps> = ({ forceTabs }) => {
const indieAuthTabTitle = (
<span className={styles.tabContent}>
<img className={styles.icon} src={IndieAuthIcon.src} alt="IndieAuth" />
<img className={styles.icon} src="/img/indieauth.png" alt="IndieAuth" />
IndieAuth
</span>
);
@ -50,7 +47,7 @@ export const AuthModal: FC<AuthModalProps> = ({ forceTabs }) => { @@ -50,7 +47,7 @@ export const AuthModal: FC<AuthModalProps> = ({ forceTabs }) => {
const fediAuthTabTitle = (
<span className={styles.tabContent}>
<img className={styles.icon} src={FediverseIcon.src} alt="Fediverse auth" />
<img className={styles.icon} src="/img/fediverse-black.png" alt="Fediverse auth" />
FediAuth
</span>
);

0
web/assets/images/fediverse-black.png → web/public/img/fediverse-black.png

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

0
web/assets/images/indieauth.png → web/public/img/indieauth.png

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

Loading…
Cancel
Save