Skip to content

Commit

Permalink
LPS-114082 Replace layout classes with new clay components in segment…
Browse files Browse the repository at this point in the history
…s-experiment-web
  • Loading branch information
edalgrin authored and brianchandotcom committed Jun 25, 2020
1 parent 915c417 commit 9b16898
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Expand Up @@ -5,6 +5,7 @@
"@clayui/drop-down": "3.4.4",
"@clayui/form": "3.8.0",
"@clayui/icon": "3.0.5",
"@clayui/layout": "3.1.0",
"@clayui/link": "3.2.0",
"@clayui/modal": "3.5.1",
"@clayui/tabs": "3.2.1",
Expand Down
Expand Up @@ -11,6 +11,7 @@

import ClayButton from '@clayui/button';
import ClayIcon from '@clayui/icon';
import ClayLayout from '@clayui/layout';
import ClayLink from '@clayui/link';
import classNames from 'classnames';
import {useEventListener} from 'frontend-js-react-web';
Expand Down Expand Up @@ -124,12 +125,16 @@ function ClickGoalPicker({allowEdit = true, onSelectClickGoalTarget, target}) {
</h4>

{state.selectedTarget && (
<dl className="autofit-row">
<dt className="autofit-col">
<ClayLayout.ContentRow containerElement="dl">
<ClayLayout.ContentCol containerElement="dt">
{Liferay.Language.get('element')}:
</dt>
</ClayLayout.ContentCol>

<dd className="autofit-col autofit-col-expand mb-0 ml-2 text-truncate-inline">
<ClayLayout.ContentCol
className="mb-0 ml-2 text-truncate-inline"
containerElement="dd"
expand
>
<ClayLink
className="text-truncate"
href={state.selectedTarget}
Expand All @@ -138,8 +143,8 @@ function ClickGoalPicker({allowEdit = true, onSelectClickGoalTarget, target}) {
>
{state.selectedTarget}
</ClayLink>
</dd>
</dl>
</ClayLayout.ContentCol>
</ClayLayout.ContentRow>
)}

{!state.selectedTarget && (
Expand Down

0 comments on commit 9b16898

Please sign in to comment.