mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Prettier
This commit is contained in:
+6
-7
@@ -1,15 +1,15 @@
|
||||
// @flow
|
||||
|
||||
import React, { useCallback, useContext } from 'react';
|
||||
import { ProfilerContext } from './ProfilerContext';
|
||||
import React, {useCallback, useContext} from 'react';
|
||||
import {ProfilerContext} from './ProfilerContext';
|
||||
import Button from '../Button';
|
||||
import ButtonIcon from '../ButtonIcon';
|
||||
import { StoreContext } from '../context';
|
||||
import {StoreContext} from '../context';
|
||||
|
||||
export default function ClearProfilingDataButton() {
|
||||
const store = useContext(StoreContext);
|
||||
const { didRecordCommits, isProfiling } = useContext(ProfilerContext);
|
||||
const { profilerStore } = store;
|
||||
const {didRecordCommits, isProfiling} = useContext(ProfilerContext);
|
||||
const {profilerStore} = store;
|
||||
|
||||
const clear = useCallback(() => profilerStore.clear(), [profilerStore]);
|
||||
|
||||
@@ -17,8 +17,7 @@ export default function ClearProfilingDataButton() {
|
||||
<Button
|
||||
disabled={isProfiling || !didRecordCommits}
|
||||
onClick={clear}
|
||||
title="Clear profiling data"
|
||||
>
|
||||
title="Clear profiling data">
|
||||
<ButtonIcon type="clear" />
|
||||
</Button>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user