override material ui theme with twitter blue

This commit is contained in:
erik-sn committed 2020-09-26 16:55:03 -04:00
1 parent 9fe4cf0188
commit 3d5aadc46d
4 files changed
+20 -9

No files matched your search

@@ -55,13 +55,11 @@ export const TwitterApp = () => {
); );
return ( return (
<AppWrapper> <AppWrapper id="twitter-app">
<TwitterTitle /> <TwitterTitle />
<AppContent> <AppContent>
<div id="twitter-content">
<AddTweetModal visible={modalVisible} handleClose={hideModal} /> <AddTweetModal visible={modalVisible} handleClose={hideModal} />
{component} {component}
</div>
</AppContent> </AppContent>
{showTweetButton && <TweetButton openModal={openModal} />} {showTweetButton && <TweetButton openModal={openModal} />}
<BottomNavigation <BottomNavigation
@@ -25,7 +25,6 @@ export function ProfileUpdateButton({ handleClick }) {
useEffect(() => { useEffect(() => {
setMimimumLoadPassed(false); setMimimumLoadPassed(false);
const timeout = window.setTimeout(() => { const timeout = window.setTimeout(() => {
console.log("debug 1.0");
setMimimumLoadPassed(true); setMimimumLoadPassed(true);
}, MINIMUM_LOAD_TIME); }, MINIMUM_LOAD_TIME);
return () => window.clearTimeout(timeout); return () => window.clearTimeout(timeout);
+19 -1
View File
@@ -1,3 +1,21 @@
.Mui-selected { /* 00acee is "twitter blue" and we want to use that to override
some of the Material UI primary theme settings */
/* override the bottom navigation active color */
#twitter-app .Mui-selected {
color: #00acee !important; color: #00acee !important;
} }
/* override the FAB (action buttons) background when selected */
#twitter-app .MuiFab-primary {
background: #00acee !important;
}
/* override the labels on text fields */
#twitter-app .MuiInputLabel-formControl.Mui-focused {
color: #00acee !important;
}
/* override the underlines of text fields */
#twitter-app .Mui-focused:after {
border-bottom-color: #00acee !important;
}
-4
View File
@@ -106,8 +106,6 @@ ESX.RegisterServerCallback('phone:getOrCreateTwitterProfile', function(source, c
end) end)
function updateProfile(identifier, data, cb) function updateProfile(identifier, data, cb)
print(identifier)
print(data)
MySQL.Async.execute('UPDATE npwd_twitter_profiles SET avatar_url = @avatar_url, profile_name = @profile_name, bio = @bio, location = @location, job = @job WHERE identifier = @identifier', MySQL.Async.execute('UPDATE npwd_twitter_profiles SET avatar_url = @avatar_url, profile_name = @profile_name, bio = @bio, location = @location, job = @job WHERE identifier = @identifier',
{ {
['identifier'] = identifier, ['identifier'] = identifier,
@@ -117,7 +115,6 @@ function updateProfile(identifier, data, cb)
['location'] = data.location, ['location'] = data.location,
['job'] = data.job, ['job'] = data.job,
}, function(result) }, function(result)
print('result1: ', result)
cb(result) cb(result)
end) end)
end end
@@ -129,7 +126,6 @@ ESX.RegisterServerCallback('phone:updateTwitterProfile', function(source, cb, da
local _identifier = xPlayer.getIdentifier() local _identifier = xPlayer.getIdentifier()
updateProfile(_identifier, data, function(result) updateProfile(_identifier, data, function(result)
print('result2: ', result)
cb(result) cb(result)
end) end)
end) end)