mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-02 02:42:41 +02:00
refactor: unify export directive style (#6751)
This commit is contained in:
parent
0c807b3501
commit
0d14470d54
105 changed files with 315 additions and 510 deletions
|
@ -28,7 +28,5 @@ declare module '@theme/PwaReloadPopup' {
|
|||
export interface Props {
|
||||
readonly onReload: () => void;
|
||||
}
|
||||
|
||||
const PwaReloadPopup: (props: Props) => JSX.Element;
|
||||
export default PwaReloadPopup;
|
||||
export default function PwaReloadPopup(props: Props): JSX.Element;
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ import type {Props} from '@theme/PwaReloadPopup';
|
|||
|
||||
import styles from './styles.module.css';
|
||||
|
||||
function PwaReloadPopup({onReload}: Props): JSX.Element | false {
|
||||
export default function PwaReloadPopup({onReload}: Props): JSX.Element | false {
|
||||
const [isVisible, setIsVisible] = useState(true);
|
||||
|
||||
return (
|
||||
|
@ -58,5 +58,3 @@ function PwaReloadPopup({onReload}: Props): JSX.Element | false {
|
|||
)
|
||||
);
|
||||
}
|
||||
|
||||
export default PwaReloadPopup;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue