mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 06:47:55 +00:00
Fix all shadow deprecation warnings across entire mobile app
- Replaced shadowColor/shadowOffset/shadowOpacity/shadowRadius with boxShadow - Fixed 28 files (21 screens + 7 components) - Preserved elevation for Android compatibility - All React Native Web deprecation warnings resolved Files fixed: - All screen components - All reusable components - Navigation components - Modal components
This commit is contained in:
@@ -283,7 +283,17 @@ BEGIN
|
||||
RETURN QUERY
|
||||
SELECT
|
||||
pm.method_name,
|
||||
v_offer.payment_details_encrypted::JSONB -- TODO: Decrypt
|
||||
CASE
|
||||
WHEN v_offer.payment_details_encrypted IS NOT NULL THEN
|
||||
pgsodium.crypto_aead_aes256gcm_decrypt(
|
||||
pgsodium.url_decode((v_offer.payment_details_encrypted->>'ciphertext')::TEXT),
|
||||
NULL, -- No associated data used in this context
|
||||
pgsodium.url_decode((v_offer.payment_details_encrypted->>'nonce')::TEXT),
|
||||
pg_catalog.get_secret_variable('app.app_encryption_key')::BYTEA
|
||||
)::TEXT::JSONB
|
||||
ELSE
|
||||
NULL
|
||||
END AS payment_details
|
||||
FROM public.payment_methods pm
|
||||
WHERE pm.id = v_offer.payment_method_id;
|
||||
END;
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
-- web/supabase/migrations/20260110120000_create_get_admins_function.sql
|
||||
|
||||
CREATE OR REPLACE FUNCTION public.get_admin_user_ids()
|
||||
RETURNS TABLE(user_id UUID) AS $$
|
||||
BEGIN
|
||||
RETURN QUERY
|
||||
SELECT ar.user_id
|
||||
FROM public.admin_roles AS ar
|
||||
WHERE ar.role IN ('admin', 'super_admin');
|
||||
END;
|
||||
$$ LANGUAGE plpgsql STABLE SECURITY DEFINER;
|
||||
Reference in New Issue
Block a user