feat: init
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// components/ErrorBoundary/index.tsx
|
||||
import React, { Component, ReactNode } from "react";
|
||||
import { Component, ReactNode } from "react";
|
||||
import { Result, Button } from "antd-mobile";
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
gap: 12px;
|
||||
margin-top: 24px;
|
||||
|
||||
.button {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useCallback, useState } from "react";
|
||||
import React, { useCallback } from "react";
|
||||
import "./index.less";
|
||||
|
||||
const VoiceIcon = (props: { isPlaying: boolean; onChange?: () => void }) => {
|
||||
@@ -7,10 +7,7 @@ const VoiceIcon = (props: { isPlaying: boolean; onChange?: () => void }) => {
|
||||
props.onChange?.();
|
||||
}, [isPlaying]);
|
||||
return (
|
||||
<div
|
||||
className={`voice-icon ${isPlaying ? "playing" : ""}`}
|
||||
onClick={onChange}
|
||||
>
|
||||
<div className={`voice-icon ${isPlaying ? "playing" : ""}`} onClick={onChange}>
|
||||
<div className="wave wave1"></div>
|
||||
<div className="wave wave2"></div>
|
||||
<div className="wave wave3"></div>
|
||||
|
||||
Reference in New Issue
Block a user