Skip to content

Commit 18b8c30

Browse files
authored
Merge pull request #3 from UncoderIO/saltar-update-links
Update links
2 parents e54b394 + 2b6ea0e commit 18b8c30

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

uncoder-os/src/components/AdditionalButtons/AdditionalButton/AdditionalButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ export const AdditionalButton: FC <AdditionalType> = ({
77
href = undefined,
88
icon,
99
text,
10+
classes,
1011
target = undefined,
1112
handleClick = () => {},
1213
disabled = false,
1314
}) => {
1415
const element = (
1516
<div
16-
className={`additional-button ${text.toLowerCase()}${disabled ? ' is-disabled' : ''}`}
17+
className={`additional-button ${classes?.toLowerCase()}${disabled ? ' is-disabled' : ''}`}
1718
onClick={handleClick}
1819
>
1920
<div className="additional-button__icon m-b-4">

uncoder-os/src/components/AdditionalButtons/AdditionalButtons.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const AdditionalButtons: FC = () => (
1010
additionalConfig?.map(({
1111
icon,
1212
text,
13+
classes,
1314
href,
1415
target,
1516
disabled = false,
@@ -18,6 +19,7 @@ export const AdditionalButtons: FC = () => (
1819
<AdditionalButton
1920
icon={icon}
2021
text={text}
22+
classes={classes}
2123
target={target}
2224
href={href}
2325
disabled={disabled}

uncoder-os/src/components/AdditionalButtons/additionalConfig.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { ReactComponent as GuideIcon } from './Svg/GuideIcon.svg';
1010
export type AdditionalType = {
1111
icon: React.ReactNode;
1212
text: string;
13+
classes?: AdditionalButtonNames;
1314
href?: string | undefined;
1415
target?: string | undefined;
1516
disabled?: boolean;
@@ -19,8 +20,9 @@ export type AdditionalType = {
1920
export const additionalConfig: AdditionalType[] = [
2021
{
2122
icon: <RootaIcon/>,
22-
text: AdditionalButtonNames.Roota,
23-
href: 'https://github.com/UncoderIO/RootA',
23+
text: 'What is RootA',
24+
classes: AdditionalButtonNames.Roota,
25+
href: 'https://roota.io',
2426
target: '_blank',
2527
},
2628
/* {
@@ -32,18 +34,21 @@ export const additionalConfig: AdditionalType[] = [
3234
{
3335
icon: <GitHubIcon/>,
3436
text: AdditionalButtonNames.GitHub,
37+
classes: AdditionalButtonNames.GitHub,
3538
href: 'https://github.com/UncoderIO/UncoderIO',
3639
target: '_blank',
3740
},
3841
{
3942
icon: <DiscordIcon/>,
4043
text: AdditionalButtonNames.Community,
44+
classes: AdditionalButtonNames.Community,
4145
href: 'https://discord.gg/socprime',
4246
target: '_blank',
4347
},
4448
{
4549
icon: <GuideIcon/>,
4650
text: AdditionalButtonNames.Guide,
51+
classes: AdditionalButtonNames.Guide,
4752
href: 'https://github.com/UncoderIO/UncoderIO/blob/main/README.md',
4853
target: '_blank',
4954
},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy