Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
albertfolch-redeemeum committed Jan 16, 2025
1 parent 8507546 commit 30ece0e
Show file tree
Hide file tree
Showing 18 changed files with 25 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export function ContractualAgreementView({
),
contentStyle: {
background: getCssVar("--background-accent-color")
}
},
footerComponent: null
}
});
}, [dispatch, onBackClick, showBosonLogoInHeader]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export function LicenseAgreementView({
),
contentStyle: {
background: getCssVar("--background-accent-color")
}
},
footerComponent: null
}
});
}, [dispatch, showBosonLogoInHeader, onBackClick]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export function OfferFullDescriptionView({
contentStyle: {
background: getCssVar("--background-accent-color"),
padding: 0
}
},
footerComponent: null
}
});
}, [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export function CommitOfferPolicyView({
),
contentStyle: {
background: getCssVar("--background-accent-color")
}
},
footerComponent: null
}
});
}, [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ export function OfferVariantView({
),
contentStyle: {
background: getCssVar("--background-accent-color")
}
},
footerComponent: null
}
});
}, [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ export function ConfirmationView({
useEffect(() => {
dispatch({
payload: {
onArrowLeftClick: null,
headerComponent: RedeemHeader,
contentStyle: {
background: getCssVar("--background-accent-color")
}
},
footerComponent: null
}
});
}, [dispatch]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export function ContractualAgreementView({
useEffect(() => {
dispatch({
payload: {
onArrowLeftClick: null,
headerComponent: (
<Grid style={{ flex: "1" }} gap="1rem" justifyContent="flex-start">
<ArrowLeft
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export function ExchangeFullDescriptionView({
useEffect(() => {
dispatch({
payload: {
onArrowLeftClick: null,
headerComponent: (
<Grid style={{ flex: "1" }} gap="1rem">
<ArrowLeft
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export function ExchangeView({
useEffect(() => {
dispatch({
payload: {
onArrowLeftClick: null,
headerComponent: (
<Grid gap="1rem" style={{ flex: "1" }}>
<House
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export function RedeemSuccess({
useEffect(() => {
dispatch({
payload: {
onArrowLeftClick: null,
headerComponent: (
<Grid style={{ flex: "1" }}>
<House
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const CancellationView: React.FC<CancellationViewProps> = ({
useEffect(() => {
dispatch({
payload: {
onArrowLeftClick: null,
headerComponent: isCancelModeOnly ? (
<Grid gap="1rem" style={{ flex: "1" }}>
<Typography tag="h3" style={{ flex: "1 1" }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const ExpireVoucherView: React.FC<ExpireVoucherViewProps> = ({
useEffect(() => {
dispatch({
payload: {
onArrowLeftClick: null,
headerComponent: (
<Grid style={{ flex: "1" }} gap="1rem">
<ArrowLeft
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export function LicenseAgreementView({
useEffect(() => {
dispatch({
payload: {
onArrowLeftClick: null,
headerComponent: (
<Grid style={{ flex: "1" }} gap="1rem" justifyContent="flex-start">
<ArrowLeft
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export function MyItems({
useEffect(() => {
dispatch({
payload: {
onArrowLeftClick: null,
headerComponent: (
<h3 style={{ width: "100%", flex: 1 }}>Manage your exchanges</h3>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export function RedeemOfferPolicyView({
useEffect(() => {
dispatch({
payload: {
onArrowLeftClick: null,
headerComponent: (
<Grid gap="1rem" style={{ flex: "1 1" }}>
<ArrowLeft
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default function RedeemFormView({
useEffect(() => {
dispatch({
payload: {
onArrowLeftClick: null,
headerComponent: RedeemHeader,
contentStyle: {
background: getCssVar("--background-accent-color")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default function StepsOverview({
useEffect(() => {
dispatch({
payload: {
onArrowLeftClick: null,
headerComponent: RedeemHeader,
contentStyle: {
background: getCssVar("--background-accent-color")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export enum ActionKind {
}

type Action = {
payload: State;
payload: Required<State>;
};

type State = Pick<
Expand Down

0 comments on commit 30ece0e

Please sign in to comment.