Use icon button into titles

This commit is contained in:
RadoslavDimchev 2023-07-22 13:14:27 +03:00
parent f4c3bfbe65
commit a9d9eb7d22
2 changed files with 15 additions and 2 deletions

BIN
public/icons/reveal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 557 B

View File

@ -1,11 +1,24 @@
import { YStack } from "tamagui";
import { XStack, YStack } from "tamagui";
import { SubTitle } from "./Title";
import { Title } from "./SubTitle";
import { IconButton } from "../IconButton";
const Titles = ({ title, subtitle }) => {
return (
<YStack>
<Title color={"#09101C"}>{title}</Title>
<XStack justifyContent="space-between">
<Title color={"#09101C"}>{title}</Title>
<IconButton
style={{
backgroundColor: "transparent",
border: "1px solid #DCE0E5",
}}
color={"#09101C"}
size={"$3"}
icon={"/icons/reveal.png"}
text={"Advanced Settings"}
/>
</XStack>
<SubTitle color={"#09101C"}>{subtitle}</SubTitle>
</YStack>
);