diff --git a/app/components/forms/select/toggle/component.tsx b/app/components/forms/select/toggle/component.tsx index 4279612e39..24e2f839d3 100644 --- a/app/components/forms/select/toggle/component.tsx +++ b/app/components/forms/select/toggle/component.tsx @@ -1,12 +1,12 @@ import React, { useCallback, useMemo } from 'react'; -import cx from 'classnames'; -import ARROW_DOWN_SVG from 'svgs/ui/arrow-down.svg?sprite'; -import Icon from 'components/icon'; +import cx from 'classnames'; import THEME from 'components/forms/select/constants/theme'; - import { SelectToggleProps } from 'components/forms/select/types'; +import Icon from 'components/icon'; + +import ARROW_DOWN_SVG from 'svgs/ui/arrow-down.svg?sprite'; export const SelectToggle: React.FC = ({ options, @@ -25,7 +25,7 @@ export const SelectToggle: React.FC = ({ return options.filter((o) => !o.disabled && o.enabled); }, [options]); - const labelDefaultFormatter:() => string = useCallback(() => { + const labelDefaultFormatter: () => string = useCallback(() => { if (!selectedItems.length) return placeholder; if (selectedItems.length === 1) return selectedItems[0].label; if (selectedItems.length === getEnabledOptions.length) return 'All items selected'; @@ -34,6 +34,7 @@ export const SelectToggle: React.FC = ({ return ( + leave: { + opacity: 1, + x: 0, + y: '-50%', + transition: { + ease: 'easeInOut', + }, + }, + }} + > + + + ) ); }; diff --git a/app/layout/statics/contact/component.tsx b/app/layout/statics/contact/component.tsx index 3e65ef61cf..bf5256c270 100644 --- a/app/layout/statics/contact/component.tsx +++ b/app/layout/statics/contact/component.tsx @@ -1,8 +1,9 @@ import React from 'react'; -import Button from 'components/button'; import Wrapper from 'layout/wrapper'; +import Button from 'components/button'; + export interface StaticContactProps { } @@ -19,7 +20,14 @@ export const StaticContact: React.FC = () => { Help us strengthen Marxan.

-
diff --git a/app/pages/_document.tsx b/app/pages/_document.tsx index 34e88c2d4a..c6b182c9b7 100644 --- a/app/pages/_document.tsx +++ b/app/pages/_document.tsx @@ -12,7 +12,7 @@ class MyDocument extends Document { render() { return ( - +