Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Spoke version in app #2500

Open
wants to merge 1 commit into
base: stage-main-14.1.2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/containers/UserEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,18 @@ const styles = StyleSheet.create({
},
cancel: {
marginTop: 15
},
spokeVersion: {
position: "absolute",
left: -8,
bottom: -10,
fontSize: "smaller",
margin: 0
}
});

const spokeVersion = "14.1.2";

const fetchUser = async (organizationId, userId) => {
try {
const response = await apolloClient.query({
Expand Down Expand Up @@ -300,7 +309,7 @@ export class UserEditBase extends React.Component {
const fieldsNeeded = router && !!router.location.query.fieldsNeeded;

return (
<div style={{ padding: 20 }}>
<div style={{ padding: 20, position: "relative" }}>
{userId ? <div style={{}}>User Id: {userId}</div> : null}
<GSForm
style={{}}
Expand Down Expand Up @@ -440,6 +449,7 @@ export class UserEditBase extends React.Component {
racism, patriarchy, and militarism.
</CardContent>
</Card>
<p className={css(styles.spokeVersion)}>Spoke v{spokeVersion}</p>
</div>
);
}
Expand Down
Loading