mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-20 16:30:34 +00:00
Use icon button into titles
This commit is contained in:
parent
f4c3bfbe65
commit
a9d9eb7d22
BIN
public/icons/reveal.png
Normal file
BIN
public/icons/reveal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 557 B |
@ -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>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user