PluginProbe
Extendify / 0.10.1
Extendify v0.10.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / Onboarding / components / SquareNextButton.js

SquareNextButton.js in Extendify 0.10.1, at src/Onboarding/components/SquareNextButton.js

21 lines 757 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from '@wordpress/i18n'
2 import { usePagesStore } from '@onboarding/state/Pages'
3 import { LeftArrowIcon } from '@onboarding/svg'
4
5 export const SquareNextButton = () => {
6 const { nextPage, currentPageIndex, pages } = usePagesStore()
7 const currentPageKey = Array.from(pages.keys())[currentPageIndex]
8 const pageState = pages.get(currentPageKey).state()
9
10 return (
11 <button
12 className="flex items-center px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus h-14 rounded-none"
13 onClick={nextPage}
14 disabled={!pageState.ready}
15 type="button">
16 {__('Next', 'extendify')}
17 <LeftArrowIcon className="h-5 w-5" />
18 </button>
19 )
20 }
21