Open anran758 opened 7 months ago
After using the astroturf css template function, we noticed that the actual output in our code is an object rather than a string.
css
object
import {css} from 'astroturf' const styles = css` .button { padding-top: 16px; padding-left: 0; } .product :global(.ant-form-item-label) { flex-basis: auto !important; } ` export default function ProductList(props) { console.log('styles -->', styles); // other code... return ( <FileUpload key={record.id} accept=".csv" buttonProps={{ type: 'link', loading: isPendingImport, className: styles.button, }} icon={false} /> ); }
Therefore, it's necessary to adjust the return type of the css template function.
After using the astroturf
css
template function, we noticed that the actual output in our code is anobject
rather than a string.Therefore, it's necessary to adjust the return type of the
css
template function.