mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-31 06:01:24 +00:00
Move transition in a separate file
This commit is contained in:
12
src/common/Transitions.tsx
Normal file
12
src/common/Transitions.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Slide } from '@mui/material';
|
||||
import { TransitionProps } from '@mui/material/transitions';
|
||||
import { forwardRef, ReactElement, Ref } from 'react';
|
||||
|
||||
export const TransitionUp = forwardRef(function Transition(
|
||||
props: TransitionProps & {
|
||||
children: ReactElement;
|
||||
},
|
||||
ref: Ref<unknown>
|
||||
) {
|
||||
return <Slide direction="up" ref={ref} {...props} />;
|
||||
});
|
Reference in New Issue
Block a user