            [:td (datetime/as-time-since uploaded_at)]
            [:td {:on-click #(raise! owner [:delete-p12 {:project-name project-name :id id}])} [:i.material-icons "cancel"]]])))))
 
-(defn code-signing [{:keys [project osx-keys]} owner]
-  (reify
-    om/IRender
-    (render [_]
-      (let [project-name (vcs-url/project-name (:vcs_url project))]
+(defn code-signing [{:keys [project-data error-message]} owner]
+  (reify
+    om/IRender
+    (render [_]
+      (let [{:keys [project osx-keys]} project-data
+            project-name (vcs-url/project-name (:vcs_url project))]
         (html
           [:section.code-signing-page
            [:article

                [:div.modal-title "Upload a New Apple Code Signing Key"]
                [:i.material-icons.modal-close {:data-dismiss "modal"} "clear"]]
               [:div.modal-body.upload
                (om/build p12-upload-form {:project-name project-name})]]]]]])))))

(defn project-settings [data owner]

               :aws (om/build aws project-data)
               :aws-codedeploy (om/build aws-codedeploy project-data)
               :code-signing (if (feature/enabled? :show-ios-code-signing)
                               (om/build code-signing {:project-data project-data :error-message error-message})
                               (om/build overview project-data))
               (om/build overview project-data))]]))))))
