diff --git a/canister_ids.json b/canister_ids.json index 133b9b9..1d577ca 100644 --- a/canister_ids.json +++ b/canister_ids.json @@ -19,5 +19,8 @@ }, "likeFetch" : { "ic" : "leoia-xiaaa-aaaan-qgjyq-cai" + }, + "frontend" : { + "ic" : "2f64i-aaaaa-aaaan-qiu4q-cai" } } \ No newline at end of file diff --git a/dfx.json b/dfx.json index 01a2c2e..cd427ae 100644 --- a/dfx.json +++ b/dfx.json @@ -62,6 +62,13 @@ "declarations": { "node_compatibility": true } + }, + "frontend": { + "frontend": { + "entrypoint": "frontend/build/index.html" + }, + "source": ["frontend/build"], + "type": "assets" } }, "defaults": { diff --git a/frontend/public/favicon.ico b/frontend/public/favicon.ico deleted file mode 100644 index a11777c..0000000 Binary files a/frontend/public/favicon.ico and /dev/null differ diff --git a/frontend/public/index.html b/frontend/public/index.html index aa069f2..0c746cf 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -2,14 +2,14 @@ - + - + - React App + Proton diff --git a/frontend/public/logo.jpg b/frontend/public/logo.jpg new file mode 100644 index 0000000..b463595 Binary files /dev/null and b/frontend/public/logo.jpg differ diff --git a/frontend/public/logo192.png b/frontend/public/logo192.png deleted file mode 100644 index fc44b0a..0000000 Binary files a/frontend/public/logo192.png and /dev/null differ diff --git a/frontend/public/logo512.png b/frontend/public/logo512.png deleted file mode 100644 index a4e47a6..0000000 Binary files a/frontend/public/logo512.png and /dev/null differ diff --git a/frontend/public/manifest.json b/frontend/public/manifest.json index 080d6c7..07221fc 100644 --- a/frontend/public/manifest.json +++ b/frontend/public/manifest.json @@ -1,21 +1,11 @@ { - "short_name": "React App", - "name": "Create React App Sample", + "short_name": "Proton", + "name": "Proton App", "icons": [ { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - }, - { - "src": "logo192.png", - "type": "image/png", - "sizes": "192x192" - }, - { - "src": "logo512.png", - "type": "image/png", - "sizes": "512x512" + "src": "logo.jpg", + "type": "image/jpg", + "sizes": "400x400" } ], "start_url": ".", diff --git a/frontend/src/components/Modal/form.tsx b/frontend/src/components/Modal/form.tsx index 14853eb..8b650fa 100644 --- a/frontend/src/components/Modal/form.tsx +++ b/frontend/src/components/Modal/form.tsx @@ -50,6 +50,8 @@ export default function ProfileForm(props: ProfileFormProps) { const [form] = Form.useForm(); const [api, contextHolder] = notification.useNotification(); const {principal} = useAuth() + console.log(props.userProfile) + console.log(props.userProfile?.feedCanister); const onFinish = async (values: any) => { api.info({ @@ -95,7 +97,7 @@ export default function ProfileForm(props: ProfileFormProps) { education: props.userProfile?.education, backImgUrl: props.userProfile?.backImgUrl, avatarUrl: props.userProfile?.avatarUrl, - feedCanister: props.userProfile?.feedCanister[0]?.toString(), + feedCanister: (props.userProfile?.feedCanister !== undefined && props.userProfile?.feedCanister.length > 0) ? props.userProfile?.feedCanister[0]?.toString() : "", biography: props.userProfile?.biography }} style={{maxWidth: 600}}