79286330

Date: 2024-12-16 23:35:06
Score: 0.5
Natty:
Report link

This is what help me fix my own

const CustomToolbar = ({date, onNavigate}: ToolbarProps)  => {

    const goToBack = () => {
        onNavigate('PREV');    }

    const goToNext = () => {
        onNavigate('NEXT');
        };

    return (
        <div className='rbc-toolbar'>
            <PrimaryButton onClick={goToBack} style={{marginRight: "5px"}} text='Previous'/>
            <DefaultButton onClick={goToNext} style={{marginRight: "5px"}} text='Next' />
            <DatePicker />
        </div>
    )
}
Reasons:
  • Blacklisted phrase (1): help me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Frank Oppong Konadu