String updates
This commit is contained in:
@@ -14,7 +14,7 @@ function Header({
|
||||
closeWeatherModal,
|
||||
openWeatherModal,
|
||||
}: any) {
|
||||
const { isMobile, weather, basicWeather } = useCommonHooks();
|
||||
const { isMobile, weather, basicWeather, personal } = useCommonHooks();
|
||||
const [time, setTime] = useState(new Date());
|
||||
function fixDigits(k: any) {
|
||||
if (k < 10) {
|
||||
@@ -54,7 +54,6 @@ function Header({
|
||||
});
|
||||
}
|
||||
}, [weather, basicWeather]);
|
||||
|
||||
return (
|
||||
<Stack
|
||||
style={{
|
||||
@@ -77,7 +76,11 @@ function Header({
|
||||
classNames={textClasses}
|
||||
fz={isMobile ? 24 : undefined}
|
||||
>
|
||||
{greet}
|
||||
{greet
|
||||
.replace('$firstName', personal?.[0].firstName)
|
||||
.replace('$lastName', personal?.[0].lastName)
|
||||
.replace('$firstName!', personal?.[0].firstName.toUpperCase())
|
||||
.replace('$lastName!', personal?.[0].lastName.toUpperCase())}
|
||||
</Text>
|
||||
</Stack>
|
||||
<Stack
|
||||
|
||||
Reference in New Issue
Block a user