String updates

This commit is contained in:
Sean Edmunds
2025-01-28 13:07:40 -06:00
parent 6031394c59
commit 57d36cb522
6 changed files with 48 additions and 58 deletions

View File

@@ -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