Skip to content

Commit

Permalink
fix: Tidy up Node.tsx (#3598)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Aug 30, 2024
1 parent 9056408 commit f3948d8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions editor.planx.uk/src/pages/Preview/Node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,22 @@ interface Props {
data?: any;
}

const Node: React.FC<any> = (props: Props) => {
const Node: React.FC<Props> = (props) => {
const [
childNodesOf,
resultData,
hasPaid,
passport,
isFinalCard,
resetPreview,
sessionId,
cachedBreadcrumbs,
flowName,
flowSettings,
] = useStore((state) => [
state.childNodesOf,
state.resultData,
state.hasPaid(),
state.computePassport(),
state.isFinalCard(),
state.resetPreview,
state.sessionId,
state.cachedBreadcrumbs,
state.flowName,
state.flowSettings,
]);

Expand Down

0 comments on commit f3948d8

Please sign in to comment.