mirror of
https://github.com/techno-tim/littlelink-server.git
synced 2024-12-04 07:23:34 +01:00
fix(button): fixes to Discord and Alt Email buttons (#31)
* fix(email): Fixed Alt Email link * fix(discord): Added missing components for Discord button generation
This commit is contained in:
parent
dacc105542
commit
251a49fea5
@ -8,6 +8,7 @@ import kitLogo from '../../icons/kit.svg';
|
|||||||
import tiktokLogo from '../../icons/tiktok.svg';
|
import tiktokLogo from '../../icons/tiktok.svg';
|
||||||
import twitchLogo from '../../icons/twitch.svg';
|
import twitchLogo from '../../icons/twitch.svg';
|
||||||
import twitterLogo from '../../icons/twitter.svg';
|
import twitterLogo from '../../icons/twitter.svg';
|
||||||
|
import discordLogo from '../../icons/discord.svg';
|
||||||
import youtubeLogo from '../../icons/youtube.svg';
|
import youtubeLogo from '../../icons/youtube.svg';
|
||||||
import facebookLogo from '../../icons/facebook.svg';
|
import facebookLogo from '../../icons/facebook.svg';
|
||||||
import messengerLogo from '../../icons/messenger.svg';
|
import messengerLogo from '../../icons/messenger.svg';
|
||||||
@ -63,6 +64,14 @@ function Home(props) {
|
|||||||
logo={twitterLogo}
|
logo={twitterLogo}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
{runtimeConfig.DISCORD && (
|
||||||
|
<Button
|
||||||
|
name="discord"
|
||||||
|
href={runtimeConfig.DISCORD}
|
||||||
|
displayName="Discord"
|
||||||
|
logo={discordLogo}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{runtimeConfig.INSTAGRAM && (
|
{runtimeConfig.INSTAGRAM && (
|
||||||
<Button
|
<Button
|
||||||
name="instagram"
|
name="instagram"
|
||||||
@ -187,7 +196,7 @@ function Home(props) {
|
|||||||
{runtimeConfig.EMAIL_ALT && (
|
{runtimeConfig.EMAIL_ALT && (
|
||||||
<Button
|
<Button
|
||||||
name="default"
|
name="default"
|
||||||
href={`mailto:${runtimeConfig.EMAIL_ALT_TEXT}`}
|
href={`mailto:${runtimeConfig.EMAIL_ALT}`}
|
||||||
displayName={runtimeConfig.EMAIL_ALT_TEXT}
|
displayName={runtimeConfig.EMAIL_ALT_TEXT}
|
||||||
logo={emailAltLogo}
|
logo={emailAltLogo}
|
||||||
/>
|
/>
|
||||||
|
@ -82,6 +82,9 @@ export const runtimeConfig =
|
|||||||
TWITTER: nodeIsProduction
|
TWITTER: nodeIsProduction
|
||||||
? process.env.TWITTER
|
? process.env.TWITTER
|
||||||
: process.env.RAZZLE_TWITTER,
|
: process.env.RAZZLE_TWITTER,
|
||||||
|
DISCORD: nodeIsProduction
|
||||||
|
? process.env.DISCORD
|
||||||
|
: process.env.RAZZLE_DISCORD,
|
||||||
INSTAGRAM: nodeIsProduction
|
INSTAGRAM: nodeIsProduction
|
||||||
? process.env.INSTAGRAM
|
? process.env.INSTAGRAM
|
||||||
: process.env.RAZZLE_INSTAGRAM,
|
: process.env.RAZZLE_INSTAGRAM,
|
||||||
|
Loading…
Reference in New Issue
Block a user