diff --git a/frontend/src/components/ConfigureProfileDialog/ConfigureProfileDialog.js b/frontend/src/components/ConfigureProfileDialog/ConfigureProfileDialog.js index 84f8ca69..b2e339f1 100644 --- a/frontend/src/components/ConfigureProfileDialog/ConfigureProfileDialog.js +++ b/frontend/src/components/ConfigureProfileDialog/ConfigureProfileDialog.js @@ -62,15 +62,17 @@ export default function ConfigureProfileDialog({ }; const handleSettingsFollowingChange = (event) => { - console.log("Following changed for profile id: " + squeakProfile.getProfileId()); + const profileAddress = squeakProfile.getAddress(); + console.log("Following changed for profile with address: " + profileAddress); console.log("Following changed to: " + event.target.checked); - setFollowing(squeakProfile.getProfileId(), event.target.checked); + setFollowing(profileAddress, event.target.checked); }; const handleSettingsSharingChange = (event) => { - console.log("Sharing changed for profile id: " + squeakProfile.getProfileId()); + const profileAddress = squeakProfile.getAddress(); + console.log("Sharing changed for profile with address: " + profileAddress); console.log("Sharing changed to: " + event.target.checked); - setSharing(squeakProfile.getProfileId(), event.target.checked); + setSharing(profileAddress, event.target.checked); }; function MakeCancelButton() { diff --git a/frontend/src/components/CreateContactProfileDialog/CreateContactProfileDialog.js b/frontend/src/components/CreateContactProfileDialog/CreateContactProfileDialog.js index e94e3ee9..f4ffd838 100644 --- a/frontend/src/components/CreateContactProfileDialog/CreateContactProfileDialog.js +++ b/frontend/src/components/CreateContactProfileDialog/CreateContactProfileDialog.js @@ -46,7 +46,7 @@ export default function CreateContactProfileDialog({ }; const handleResponse = (response) => { - goToProfilePage(history, response.getProfileId()); + goToProfilePage(history, response.getAddress()); }; const handleErr = (err) => { diff --git a/frontend/src/components/CreateSigningProfileDialog/CreateSigningProfileDialog.js b/frontend/src/components/CreateSigningProfileDialog/CreateSigningProfileDialog.js index 5b305428..124643bc 100644 --- a/frontend/src/components/CreateSigningProfileDialog/CreateSigningProfileDialog.js +++ b/frontend/src/components/CreateSigningProfileDialog/CreateSigningProfileDialog.js @@ -56,7 +56,7 @@ export default function CreateSigningProfileDialog({ }; const handleResponse = (response) => { - goToProfilePage(history, response.getProfileId()); + goToProfilePage(history, response.getAddress()); }; const handleErr = (err) => { diff --git a/frontend/src/components/DeleteProfileDialog/DeleteProfileDialog.js b/frontend/src/components/DeleteProfileDialog/DeleteProfileDialog.js index 4e2edaef..72c3b162 100644 --- a/frontend/src/components/DeleteProfileDialog/DeleteProfileDialog.js +++ b/frontend/src/components/DeleteProfileDialog/DeleteProfileDialog.js @@ -54,9 +54,9 @@ export default function DeleteProfileDialog({ function handleSubmit(event) { event.preventDefault(); console.log( 'profile:', profile); - var profileId = profile.getProfileId(); - console.log( 'profileId:', profileId); - deleteProfile(profileId); + var squeakAddress = profile.getAddress(); + console.log( 'squeakAddress:', squeakAddress); + deleteProfile(squeakAddress); handleClose(); } diff --git a/frontend/src/components/ExportPrivateKeyDialog/ExportPrivateKeyDialog.js b/frontend/src/components/ExportPrivateKeyDialog/ExportPrivateKeyDialog.js index e79881b4..d3f2c402 100644 --- a/frontend/src/components/ExportPrivateKeyDialog/ExportPrivateKeyDialog.js +++ b/frontend/src/components/ExportPrivateKeyDialog/ExportPrivateKeyDialog.js @@ -55,8 +55,8 @@ export default function ExportPrivateKeyDialog({ }; const getPrivateKey = () => { - var profileId = profile.getProfileId(); - getSqueakProfilePrivateKey(profileId, (response) => { + var profileAddress = profile.getAddress(); + getSqueakProfilePrivateKey(profileAddress, (response) => { setPrivateKey(response.getPrivateKey()); }); }; diff --git a/frontend/src/components/ImportSigningProfileDialog/ImportSigningProfileDialog.js b/frontend/src/components/ImportSigningProfileDialog/ImportSigningProfileDialog.js index 0d153ddd..f50b9fdf 100644 --- a/frontend/src/components/ImportSigningProfileDialog/ImportSigningProfileDialog.js +++ b/frontend/src/components/ImportSigningProfileDialog/ImportSigningProfileDialog.js @@ -61,7 +61,8 @@ export default function ImportSigningProfileDialog({ }; const handleResponse = (response) => { - goToProfilePage(history, response.getProfileId()); + const profileAddress = response.getAddress(); + goToProfilePage(history, profileAddress); }; const handleErr = (err) => { diff --git a/frontend/src/components/MakeSqueakDialog/MakeSqueakDialog.js b/frontend/src/components/MakeSqueakDialog/MakeSqueakDialog.js index 607a8767..06620c53 100644 --- a/frontend/src/components/MakeSqueakDialog/MakeSqueakDialog.js +++ b/frontend/src/components/MakeSqueakDialog/MakeSqueakDialog.js @@ -128,7 +128,7 @@ export default function MakeSqueakDialog({ onChange={handleChange} > {signingProfiles.map(p => - + )} diff --git a/frontend/src/components/UpdateProfileImageDialog/UpdateProfileImageDialog.js b/frontend/src/components/UpdateProfileImageDialog/UpdateProfileImageDialog.js index bf5971a9..271154e6 100644 --- a/frontend/src/components/UpdateProfileImageDialog/UpdateProfileImageDialog.js +++ b/frontend/src/components/UpdateProfileImageDialog/UpdateProfileImageDialog.js @@ -65,7 +65,7 @@ export default function UpdateProfileImageDialog({ const updateProfileImage = (imageStr) => { setSqueakProfileImageRequest( - squeakProfile.getProfileId(), + squeakProfile.getAddress(), imageStr, handleResponse, handleErr, diff --git a/frontend/src/navigation/navigation.js b/frontend/src/navigation/navigation.js index 25b96d28..5fc2a9c1 100644 --- a/frontend/src/navigation/navigation.js +++ b/frontend/src/navigation/navigation.js @@ -29,8 +29,8 @@ export const goToChannelPage = (history, txId, outputIndex) => { history.push("/app/channel/" + txId + "/" + outputIndex); }; -export const goToProfilePage = (history, profileId) => { - history.push("/app/profile/" + profileId); +export const goToProfilePage = (history, squeakAddress) => { + history.push("/app/profile/" + squeakAddress); }; export const goToWalletPage = (history) => { diff --git a/frontend/src/pages/profiles/Profiles.js b/frontend/src/pages/profiles/Profiles.js index 5391486f..d6942ec7 100644 --- a/frontend/src/pages/profiles/Profiles.js +++ b/frontend/src/pages/profiles/Profiles.js @@ -230,21 +230,14 @@ export default function Profiles() { title={title} data={profiles.map(p => [ - p.getProfileId(), - p.getProfileName(), p.getAddress(), + p.getProfileName(), p.getFollowing().toString(), p.getSharing().toString(), ] )} columns={[ - { - name: "Id", - options: { - display: false, - } - }, - "Name", "Address", "Following", "Sharing" + "Address", "Name", "Following", "Sharing" ]} options={{ filter: false, diff --git a/frontend/src/pages/squeakaddress/SqueakAddress.js b/frontend/src/pages/squeakaddress/SqueakAddress.js index a12cc93e..b413bcd4 100644 --- a/frontend/src/pages/squeakaddress/SqueakAddress.js +++ b/frontend/src/pages/squeakaddress/SqueakAddress.js @@ -28,7 +28,7 @@ import TimelineDot from '@material-ui/lab/TimelineDot'; import FaceIcon from '@material-ui/icons/Face'; import { - getSqueakProfileByAddressRequest, + getSqueakProfileRequest, getAddressSqueakDisplaysRequest, getNetworkRequest, } from "../../squeakclient/requests" @@ -48,7 +48,7 @@ export default function SqueakAddressPage() { const [network, setNetwork] = useState(""); const getSqueakProfile = (address) => { - getSqueakProfileByAddressRequest(address, setSqueakProfile); + getSqueakProfileRequest(address, setSqueakProfile); }; const getSqueaks = (address) => { getAddressSqueakDisplaysRequest(address, setSqueaks); @@ -91,7 +91,7 @@ export default function SqueakAddressPage() {
=p&&f<=d}return c?vc({},t,{radius:i,angle:Tc(f,t)}):null};function wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ac(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rc(e){return(Rc="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nc(){return(Nc=Object.assign||function(e){for(var t=1;t=0}));if(g&&g.length){var v=g[0].props.barSize,b=g[0].props[h];a[b]||(a[b]=[]),a[b].push({item:g[0],stackList:g.slice(1),barSize:m()(v)?t:v})}}return a}({barSize:u,stackGroups:a}),E=[];return r.forEach((function(r,u){var g,S=n.constructor.getDisplayedData(e,{dataStartIndex:l,dataEndIndex:c},r),x=r.props,O=x.dataKey,T=x.maxBarSize,C=r.props["".concat(v,"Id")],w=r.props["".concat(b,"Id")],A=i.reduce((function(e,n){var a,i=t["".concat(n.axisType,"Map")],o=r.props["".concat(n.axisType,"Id")],s=i&&i[o];return dg({},e,(pg(a={},n.axisType,s),pg(a,"".concat(n.axisType,"Ticks"),tc(s)),a))}),{}),R=A[b],N=A["".concat(b,"Ticks")],M=a&&a[C]&&a[C].hasStack&&function(e,t){var n=e.props.stackId;if(I(n)){var r=t[n];if(r&&r.items.length){for(var a=-1,i=0,o=r.items.length;i