4adaeea40a
Co-authored-by: Dariusz Majcherczyk <dariusz.majcherczyk@gmail.com> Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
25 lines
556 B
TypeScript
25 lines
556 B
TypeScript
import { useT } from '../../lib/use-t';
|
|
import type { DataGridStore } from '../../stores/datagrid-store-slice';
|
|
import { TradingButton as Button } from '@vegaprotocol/ui-toolkit';
|
|
|
|
export const GridSettings = ({
|
|
updateGridStore,
|
|
}: {
|
|
updateGridStore: (gridStore: DataGridStore) => void;
|
|
}) => {
|
|
const t = useT();
|
|
return (
|
|
<Button
|
|
onClick={() =>
|
|
updateGridStore({
|
|
columnState: undefined,
|
|
filterModel: undefined,
|
|
})
|
|
}
|
|
size="extra-small"
|
|
>
|
|
{t('Reset Columns')}
|
|
</Button>
|
|
);
|
|
};
|