You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-08-12 02:22:41 +03:00
frontend: start using CSS modules for components with design tokens
This commit is contained in:
@@ -12,15 +12,18 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import styles from "./Block.module.css";
|
||||
|
||||
type Props = {
|
||||
children: React.ReactNode;
|
||||
highlight?: boolean;
|
||||
className?: string;
|
||||
};
|
||||
|
||||
const Block: React.FC<Props> = ({ children, highlight, className }) => {
|
||||
const Block: React.FC<React.PropsWithChildren<Props>> = ({
|
||||
children,
|
||||
highlight,
|
||||
}) => {
|
||||
return (
|
||||
<div className={className} data-active={highlight}>
|
||||
<div className={styles.block} data-active={highlight}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
Reference in New Issue
Block a user