feat: import svg files from stylekit (#844)

* chore: install stylekit with its new name

* feat: import svg files from stylekit

* feat: import the remaining svgs from stylekit

* fix: import 'warning' icon from stylekit

* chore: import warning icon from stylekit

* chore: bump stylekit version

* chore: update sn dependencies
This commit is contained in:
Vardan Hakobyan
2022-02-15 12:12:34 +04:00
committed by GitHub
parent 0e1b94b5cd
commit 00d57aa69d
89 changed files with 1034 additions and 1476 deletions

View File

@@ -1,18 +1,18 @@
import { FunctionalComponent } from 'preact';
import { useRef, useState } from 'preact/hooks';
import ArrowDown from '../../../svg/arrow-down.svg';
import { ArrowDownCheckmarkIcon } from '@standardnotes/stylekit';
import { Title } from '@/preferences/components';
type Props = {
title: string | JSX.Element;
className?: string;
}
};
export const AccordionItem: FunctionalComponent<Props> = ({
title,
className = '',
children
}) => {
title,
className = '',
children,
}) => {
const elementRef = useRef<HTMLDivElement>(null);
const [isExpanded, setIsExpanded] = useState(false);
@@ -25,7 +25,7 @@ export const AccordionItem: FunctionalComponent<Props> = ({
}}
>
<Title>{title}</Title>
<ArrowDown
<ArrowDownCheckmarkIcon
className={'sn-accordion-arrow-icon absolute right-0'}
width={20}
height={20}