1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

Use Alert component for not logged in message

This commit is contained in:
Germain
2023-06-07 13:32:08 +01:00
committed by Quentin Gliech
parent 33da9f05fe
commit b493f62251

View File

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import { Alert } from "@vector-im/compound-web";
import { useAtomValue } from "jotai";
import { currentUserIdAtom } from "../atoms";
@ -35,7 +36,7 @@ const Home: React.FC = () => {
</>
);
} else {
return <div className="font-bold text-alert">You're not logged in.</div>;
return <Alert type="critical" title="You're not logged in." />;
}
};