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
+22 -11

No files matched your search

@@ -55,13 +55,11 @@ export const TwitterApp = () => {
);
return (
<AppWrapper>
<AppWrapper id="twitter-app">
<TwitterTitle />
<AppContent>
<div id="twitter-content">
<AddTweetModal visible={modalVisible} handleClose={hideModal} />
{component}
</div>
<AddTweetModal visible={modalVisible} handleClose={hideModal} />
{component}
</AppContent>
{showTweetButton && <TweetButton openModal={openModal} />}
<BottomNavigation
@@ -25,7 +25,6 @@ export function ProfileUpdateButton({ handleClick }) {
useEffect(() => {
setMimimumLoadPassed(false);
const timeout = window.setTimeout(() => {
console.log("debug 1.0");
setMimimumLoadPassed(true);
}, MINIMUM_LOAD_TIME);
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;
}
/* 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)
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',
{
['identifier'] = identifier,
@@ -117,7 +115,6 @@ function updateProfile(identifier, data, cb)
['location'] = data.location,
['job'] = data.job,
}, function(result)
print('result1: ', result)
cb(result)
end)
end
@@ -129,7 +126,6 @@ ESX.RegisterServerCallback('phone:updateTwitterProfile', function(source, cb, da
local _identifier = xPlayer.getIdentifier()
updateProfile(_identifier, data, function(result)
print('result2: ', result)
cb(result)
end)
end)