First pass at CSS identifiers + test to verify they are set. For #2193

This commit is contained in:
Gabe Kangas
2022-12-11 21:06:20 -08:00
parent 7fe811c79a
commit c231fd3592
13 changed files with 89 additions and 13 deletions

View File

@@ -1,5 +1,6 @@
import { Button } from 'antd';
import { FC } from 'react';
import cn from 'classnames';
import { ExternalAction } from '../../../interfaces/external-action';
import styles from './ActionButton.module.scss';
@@ -19,7 +20,7 @@ export const ActionButton: FC<ActionButtonProps> = ({
return (
<Button
type={primary ? 'primary' : 'default'}
className={`${styles.button}`}
className={cn([`${styles.button}`, 'action-button'])}
onClick={() => externalActionSelected(action)}
style={{ backgroundColor: color }}
>

View File

@@ -16,6 +16,7 @@ export const FollowButton: FC<FollowButtonProps> = ({ onClick, props }) => (
className={styles.button}
icon={<HeartFilled />}
onClick={onClick}
id="follow-button"
>
Follow
</Button>

View File

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