Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/web.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/web.umd.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/components/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ export const Badge = (props: Props) => {
{props.footer?.text ?? 'Powered by'}
<a
ref={liteBadge}
href={props.footer?.companyLink ?? 'https://flowiseai.com'}
href={props.footer?.companyLink ?? 'https://octobot.it.com'}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For improved maintainability, it is best practice to declare hardcoded string literals, such as this default URL, as constants at the top of the file. For example: const DEFAULT_COMPANY_LINK = 'https://octobot.it.com';. This centralizes configuration and makes future updates easier.

target="_blank"
rel="noopener noreferrer"
class="lite-badge"
id="lite-badge"
style={{ 'font-weight': 'bold', color: props.footer?.textColor ?? props.poweredByTextColor ?? defaultTextColor }}
>
<span>&nbsp;{props.footer?.company ?? 'Flowise'}</span>
<span>&nbsp;{props.footer?.company ?? 'DK-OctoBot'}</span>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Following the same principle, this default company name should also be extracted to a constant, for instance: const DEFAULT_COMPANY_NAME = 'DK-OctoBot';. This keeps default values organized and improves code clarity.

</a>
</span>
</Show>
Expand Down