Merge branch 'main' of https://gitlab.com/robossembler/webservice into alexander-1
This commit is contained in:
commit
e005a42254
15 changed files with 452 additions and 30 deletions
|
@ -6,22 +6,25 @@ export interface IButtonProps {
|
|||
filled?: boolean;
|
||||
text?: string;
|
||||
onClick?: any;
|
||||
style?:React.CSSProperties
|
||||
style?: React.CSSProperties;
|
||||
}
|
||||
|
||||
export function CoreButton(props: IButtonProps) {
|
||||
return (
|
||||
<div
|
||||
onClick={() => props.onClick?.call()}
|
||||
style={Object.assign({
|
||||
backgroundColor: props.filled ? "rgba(103, 80, 164, 1)" : "",
|
||||
paddingRight: 20,
|
||||
paddingLeft: 20,
|
||||
paddingTop: 10,
|
||||
paddingBottom: 10,
|
||||
borderRadius: 24,
|
||||
border: props.block ? "1px solid rgba(29, 27, 32, 0.12)" : props.filled ? "" : "1px solid black",
|
||||
},props.style)}
|
||||
style={Object.assign(
|
||||
{
|
||||
backgroundColor: props.filled ? "rgba(103, 80, 164, 1)" : "",
|
||||
paddingRight: 20,
|
||||
paddingLeft: 20,
|
||||
paddingTop: 10,
|
||||
paddingBottom: 10,
|
||||
borderRadius: 24,
|
||||
border: props.block ? "1px solid rgba(29, 27, 32, 0.12)" : props.filled ? "" : "1px solid black",
|
||||
},
|
||||
props.style
|
||||
)}
|
||||
>
|
||||
<CoreText
|
||||
text={props.text ?? ""}
|
||||
|
@ -31,6 +34,3 @@ export function CoreButton(props: IButtonProps) {
|
|||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue