nextcloud-libraries/nextcloud-vue

Circular import of `NcCheckboxRadioSwitch` and `NcCheckboxContent`

Closed this issue · 0 comments

After #4663 NcCheckboxRadioSwitch and NcCheckboxContent each import from each other. While this doesn't seem to be an issue for the vue 2 builds, it is the reason why the styleguide currently does not work in #4688.

I would propose to move these lines

export const TYPE_CHECKBOX = 'checkbox'
export const TYPE_RADIO = 'radio'
export const TYPE_SWITCH = 'switch'
export const TYPE_BUTTON = 'button'

into NcCheckboxContent and import the types from there.