chore(deps): update dependency eslint-plugin-react to v7.33.0 (#3205)

* chore(deps): update dependency eslint-plugin-react to v7.33.0

* chore: have linter try to autofix and commit linter warnings

* Linter fixes

* chore: tweak how js formatting is run within actions

* fix: type mismatch

* Prettified Code!

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
Co-authored-by: Owncast <owncast@owncast.online>
Co-authored-by: gabek <gabek@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2023-07-29 15:57:45 -07:00
committed by GitHub
parent adef11eccf
commit 7c13a3fd01
9 changed files with 53 additions and 58 deletions

View File

@@ -25,7 +25,7 @@ export const ActionButton: FC<ActionButtonProps> = ({
style={{ backgroundColor: color }}
title={description || title}
>
{icon && <img src={icon} className={`${styles.icon}`} alt={description} />}
{icon && <img src={icon} className={styles.icon} alt={description} />}
{title}
</Button>
);

View File

@@ -6,5 +6,5 @@ export type ActionButtonRowProps = {
};
export const ActionButtonRow: FC<ActionButtonRowProps> = ({ children }) => (
<div className={`${styles.row}`}>{children}</div>
<div className={styles.row}>{children}</div>
);

View File

@@ -17,7 +17,7 @@ export type NotifyButtonProps = {
export const NotifyButton: FC<NotifyButtonProps> = ({ onClick, text }) => (
<Button
type="primary"
className={`${styles.button}`}
className={styles.button}
icon={<BellFilled />}
onClick={onClick}
id="notify-button"

View File

@@ -75,7 +75,7 @@ const ConnectedClient = ({ client }: { client: Client }) => {
return (
<div>
<ValueRow label="Messages Sent" value={`${messageCount}`} />
<ValueRow label="Messages Sent" value={messageCount.toString()} />
{geo !== 'N/A' && <ValueRow label="Geo" value={geo} />}
<ValueRow label="Connected At" value={connectedAtDate} />
</div>
@@ -162,9 +162,7 @@ export const ChatModerationDetailsModal: FC<ChatModerationDetailsModalProps> = (
>
<Spin spinning={loading}>
<UserColorBlock color={displayColor} />
{scopes?.map(scope => (
<Tag key={scope}>{scope}</Tag>
))}
{scopes?.map(scope => <Tag key={scope}>{scope}</Tag>)}
{authenticated && <Tag>Authenticated</Tag>}
{isBot && <Tag>Bot</Tag>}
<ValueRow label="Messages Sent Across Clients" value={totalMessagesSent.toString()} />