Skip to content

Commit

Permalink
Updated Liencese Page (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvaldivia committed Oct 30, 2021
1 parent 2191a15 commit ad2cdd7
Show file tree
Hide file tree
Showing 4 changed files with 456 additions and 337 deletions.
25 changes: 25 additions & 0 deletions portal-ui/public/agpl-logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ interface IFormSwitch {
index?: number;
checked: boolean;
switchOnly?: boolean;
indicatorLabels?: string[];
}

const styles = (theme: Theme) =>
Expand Down Expand Up @@ -179,6 +180,7 @@ const FormSwitchWrapper = ({
tooltip = "",
description = "",
classes,
indicatorLabels,
}: IFormSwitch) => {
const switchComponent = (
<React.Fragment>
Expand All @@ -188,7 +190,9 @@ const FormSwitchWrapper = ({
[classes.indicatorLabelOn]: !checked,
})}
>
OFF
{indicatorLabels && indicatorLabels.length > 1
? indicatorLabels[1]
: "OFF"}
</span>
)}
<StyledSwitch
Expand All @@ -209,7 +213,7 @@ const FormSwitchWrapper = ({
[classes.indicatorLabelOn]: checked,
})}
>
ON
{indicatorLabels ? indicatorLabels[0] : "ON"}
</span>
)}
</React.Fragment>
Expand Down

0 comments on commit ad2cdd7

Please sign in to comment.