@@ -2,18 +2,20 @@ import Button from '@components/Buttons/Button'
22import DefaultButton from '@components/Buttons/DefaultButton'
33import PrimaryButton from '@components/Buttons/PrimaryButton'
44import Typography from '@components/Typography'
5+ import { classNames } from '@src/utils'
56import { IconTypes } from 'solid-icons'
67import { IoChevronBackSharp } from 'solid-icons/io'
7- import { ParentComponent , Show } from 'solid-js'
88import { VsSettings } from 'solid-icons/vs'
9- import { classNames } from '@src/utils '
9+ import { ParentComponent , Show } from 'solid-js '
1010
1111export interface IProps {
1212 onClickSettings ?: ( ) => void
1313 onClickBack ?: ( ) => void
1414 onClickSecondary ?: ( ) => void
1515 onClickPrimary ?: ( ) => void
1616 onClickOption ?: ( ) => void
17+ onClickAdvanced ?: ( ) => void
18+ advancedButtonLabel ?: string
1719 onClickOptionLabel ?: string
1820 label : string
1921 icon : IconTypes
@@ -96,25 +98,34 @@ const Card: ParentComponent<IProps> = (props) => {
9698 </ Show >
9799 { props . children }
98100 </ div >
99- < div class = "flex flex-row gap-12 w-full" >
100- < Show when = { typeof props . onClickSecondary !== 'undefined' } >
101- < Button
102- label = { props . secondaryButtonLabel ?? '--' }
103- onClick = { props . onClickSecondary }
104- />
105- </ Show >
106- < Show when = { typeof props . onClickOption !== 'undefined' } >
101+ < div class = "flex flex-col gap-12 w-full" >
102+ < div class = "flex flex-row gap-12 w-full" >
103+ < Show when = { typeof props . onClickSecondary !== 'undefined' } >
104+ < Button
105+ label = { props . secondaryButtonLabel ?? '--' }
106+ onClick = { props . onClickSecondary }
107+ />
108+ </ Show >
109+
110+ < Show when = { typeof props . onClickOption !== 'undefined' } >
111+ < Button
112+ label = { props . onClickOptionLabel ?? '--' }
113+ onClick = { props . onClickOption }
114+ />
115+ </ Show >
116+ < Show when = { typeof props . onClickPrimary !== 'undefined' } >
117+ < PrimaryButton
118+ label = { props . primaryButtonLabel ?? '--' }
119+ onClick = { props . onClickPrimary }
120+ isActive = { props . isActive }
121+ disabled = { ! props . isActive }
122+ />
123+ </ Show >
124+ </ div >
125+ < Show when = { typeof props . onClickAdvanced !== 'undefined' } >
107126 < Button
108- label = { props . onClickOptionLabel ?? '--' }
109- onClick = { props . onClickOption }
110- />
111- </ Show >
112- < Show when = { typeof props . onClickPrimary !== 'undefined' } >
113- < PrimaryButton
114- label = { props . primaryButtonLabel ?? '--' }
115- onClick = { props . onClickPrimary }
116- isActive = { props . isActive }
117- disabled = { ! props . isActive }
127+ label = { props . advancedButtonLabel ?? '--' }
128+ onClick = { props . onClickAdvanced }
118129 />
119130 </ Show >
120131 </ div >
0 commit comments