We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i have a test function and this library cant parse it right, breaking code and not changing WrapperBanner to tailwind.
import { useCallback, memo } from "react"; import styled from "styled-components"; import { useRouter } from "@happysanta/router"; import { Icon24DismissDark } from "@vkontakte/icons"; import { WORKER_RESUME_PAGE } from "router"; import { Button } from "@vkontakte/vkui"; interface BannerInterface { handleClose: (toogle: boolean) => void; } function Banner({ handleClose }: BannerInterface) { const router = useRouter(); const handleCloseBanner = useCallback(() => { handleClose(false); const resumeBannerClose = localStorage.getItem("resumeBannerClose"); if (resumeBannerClose) { return; } localStorage.setItem("resumeBannerClose", "1"); }, [handleClose]); return ( <WrapperBanner> <Wrapper> <Description> <Title>test</Title> <SubTitle>test</SubTitle> </Description> <Button appearance="neutral" mode="primary" size="s" onClick={() => router.pushPage(WORKER_RESUME_PAGE)}> test </Button> </Wrapper> <Icon24DismissDark style={{ cursor: "pointer" }} onClick={handleCloseBanner} /> </WrapperBanner> ); } const WrapperBanner = styled("div")` background-color: var(--vkui--color_text_link_tint--active); padding: 12px 16px; border-radius: 10px; display: flex; justify-content: space-between; `; const Wrapper = styled("div")` display: flex; flex-direction: column; gap: 12px; align-items: flex-start; `; const Description = styled("div")` max-width: 270px; display: flex; flex-direction: column; gap: 2px; `; const Title = styled("div")` color: var(--vkui--color_background_content); font-size: 16px; font-weight: semibold; `; const SubTitle = styled("div")` color: #d2e3f8; font-size: 13px; `; export default memo(Banner);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
i have a test function and this library cant parse it right, breaking code and not changing WrapperBanner to tailwind.
The text was updated successfully, but these errors were encountered: