yasshi2525/RushHour

View on GitHub
client/src/common/utils/loading.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React, { useMemo } from "react";

import CircularProgress from "@material-ui/core/CircularProgress";

const LoadingCircle = () =>
  useMemo(
    () => (
      <CircularProgress aria-describedby="loading-description" aria-busy={true}>
        <div id="loading-description">読み込み中</div>
      </CircularProgress>
    ),
    []
  );

export default LoadingCircle;