lot of refactoring, reorganized course buttons. Now linking to professors directory page

This commit is contained in:
Sriram Hariharan
2023-03-07 21:49:41 -06:00
parent 04a82fb6a6
commit 353c43c987
26 changed files with 556 additions and 311 deletions

View File

@@ -1,14 +1,16 @@
import classNames from 'classnames';
import React from 'react';
import { Color } from 'src/views/styles/colors.module.scss';
import styles from './Spinner.module.scss';
type Props = {
color?: Color;
testId?: string;
className?: string;
style?: React.CSSProperties;
};
/**
* A simple spinner component that can be used to indicate loading.
*/
export default function Spinner({ color }: Props) {
return <div className={styles.spinner} />;
export default function Spinner({ className, testId, style }: Props) {
return <div data-testId={testId} style={style} className={classNames(styles.spinner, className)} />;
}