mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 20:27:44 +00:00
docs: unify component implementations for consistency (#3799)
* fix(docs): unify component implementations for consistency * update
This commit is contained in:
committed by
Bereket Engida
parent
fc67723b04
commit
f59343da43
@@ -1,30 +1,19 @@
|
||||
const SectionSvg = ({ crossesOffset }: { crossesOffset: string }) => {
|
||||
return (
|
||||
<>
|
||||
<PlusSvg
|
||||
className={`hidden absolute -top-[0.3125rem] ${
|
||||
<Plus
|
||||
className={`hidden absolute -top-[0.3125rem] h-6 w-6 ${
|
||||
crossesOffset && crossesOffset
|
||||
} pointer-events-none lg:block lg:left-[3.6825rem]`}
|
||||
} pointer-events-none lg:block lg:left-[3.275rem] text-neutral-300 dark:text-neutral-600 translate-y-[.5px]`}
|
||||
/>
|
||||
|
||||
<PlusSvg
|
||||
className={`hidden absolute -top-[0.3125rem] right-[1.4625rem] ${
|
||||
<Plus
|
||||
className={`hidden absolute -top-[0.3125rem] h-6 w-6 right-[1.4625rem] ${
|
||||
crossesOffset && crossesOffset
|
||||
} pointer-events-none lg:block lg:right-[3.20rem]`}
|
||||
} pointer-events-none lg:block lg:right-[2.7750rem] text-neutral-300 dark:text-neutral-600 translate-y-[.5px]`}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default SectionSvg;
|
||||
|
||||
export const PlusSvg = ({ className = "" }) => {
|
||||
return (
|
||||
<svg className={`${className} || ""`} width="11" height="11" fill="none">
|
||||
<path
|
||||
d="M7 1a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v2a1 1 0 0 1-1 1H1a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h2a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1V8a1 1 0 0 1 1-1h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H8a1 1 0 0 1-1-1V1z"
|
||||
fill="#878787"
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user